• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/bonding/

Lines Matching refs:client_info

326 	struct rlb_client_info *client_info;
332 client_info = &(bond_info->rx_hashtbl[hash_index]);
334 if ((client_info->assigned) &&
335 (client_info->ip_src == arp->ip_dst) &&
336 (client_info->ip_dst == arp->ip_src) &&
337 (compare_ether_addr_64bits(client_info->mac_dst, arp->mac_src))) {
339 memcpy(client_info->mac_dst, arp->mac_src, ETH_ALEN);
340 client_info->ntt = 1;
496 static void rlb_update_client(struct rlb_client_info *client_info)
500 if (!client_info->slave) {
508 client_info->ip_dst,
509 client_info->slave->dev,
510 client_info->ip_src,
511 client_info->mac_dst,
512 client_info->slave->dev->dev_addr,
513 client_info->mac_dst);
516 client_info->slave->dev->master->name);
520 skb->dev = client_info->slave->dev;
522 if (client_info->tag) {
523 skb = vlan_put_tag(skb, client_info->vlan_id);
526 client_info->slave->dev->master->name);
539 struct rlb_client_info *client_info;
545 for (; hash_index != RLB_NULL_INDEX; hash_index = client_info->next) {
546 client_info = &(bond_info->rx_hashtbl[hash_index]);
547 if (client_info->ntt) {
548 rlb_update_client(client_info);
550 client_info->ntt = 0;
567 struct rlb_client_info *client_info;
574 for (; hash_index != RLB_NULL_INDEX; hash_index = client_info->next) {
575 client_info = &(bond_info->rx_hashtbl[hash_index]);
577 if ((client_info->slave == slave) &&
578 compare_ether_addr_64bits(client_info->mac_dst, mac_bcast)) {
579 client_info->ntt = 1;
598 struct rlb_client_info *client_info;
604 for (; hash_index != RLB_NULL_INDEX; hash_index = client_info->next) {
605 client_info = &(bond_info->rx_hashtbl[hash_index]);
607 if (!client_info->slave) {
616 if ((client_info->ip_src == src_ip) &&
617 compare_ether_addr_64bits(client_info->slave->dev->dev_addr,
619 compare_ether_addr_64bits(client_info->mac_dst, mac_bcast)) {
620 client_info->ntt = 1;
634 struct rlb_client_info *client_info;
640 client_info = &(bond_info->rx_hashtbl[hash_index]);
642 if (client_info->assigned) {
643 if ((client_info->ip_src == arp->ip_src) &&
644 (client_info->ip_dst == arp->ip_dst)) {
648 memcpy(client_info->mac_dst, arp->mac_dst, ETH_ALEN);
651 assigned_slave = client_info->slave;
662 client_info->slave != bond->curr_active_slave) {
663 client_info->slave = bond->curr_active_slave;
664 rlb_update_client(client_info);
672 client_info->ip_src = arp->ip_src;
673 client_info->ip_dst = arp->ip_dst;
678 memcpy(client_info->mac_dst, arp->mac_dst, ETH_ALEN);
679 client_info->slave = assigned_slave;
681 if (compare_ether_addr_64bits(client_info->mac_dst, mac_bcast)) {
682 client_info->ntt = 1;
685 client_info->ntt = 0;
689 if (!vlan_get_tag(skb, &client_info->vlan_id))
690 client_info->tag = 1;
693 if (!client_info->assigned) {
696 client_info->next = prev_tbl_head;
701 client_info->assigned = 1;
758 struct rlb_client_info *client_info;
766 for (; hash_index != RLB_NULL_INDEX; hash_index = client_info->next) {
767 client_info = &(bond_info->rx_hashtbl[hash_index]);
769 if (assigned_slave && (client_info->slave != assigned_slave)) {
770 client_info->slave = assigned_slave;
771 client_info->ntt = 1;