linux_dsm_epyc7002/drivers/net/bonding
dingtianhong fb00bc2e6c bonding: set correct vlan id for alb xmit path
The commit d3ab3ffd1d
(bonding: use rlb_client_info->vlan_id instead of ->tag)
remove the rlb_client_info->tag, but occur some issues,
The vlan_get_tag() will return 0 for success and -EINVAL for
error, so the client_info->vlan_id always be set to 0 if the
vlan_get_tag return 0 for success, so the client_info would
never get a correct vlan id.

We should only set the vlan id to 0 when the vlan_get_tag return error.

Fixes: d3ab3ffd1d (bonding: use rlb_client_info->vlan_id instead of ->tag)

CC: Ding Tianhong <dingtianhong@huawei.com>
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-13 15:45:10 -04:00
..
bond_3ad.c bonding: Fix RTNL: assertion failed at net/core/rtnetlink.c for ab arp monitor 2014-02-26 16:02:56 -05:00
bond_3ad.h bonding: 802.3ad: make aggregator_identifier bond-private 2014-02-17 14:54:06 -05:00
bond_alb.c bonding: set correct vlan id for alb xmit path 2014-03-13 15:45:10 -04:00
bond_alb.h drivers/net/*: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
bond_debugfs.c bonding: delete migrated IP addresses from the rlb hash table 2012-11-30 12:07:27 -05:00
bond_main.c bonding: disallow enslaving a bond to itself 2014-02-26 22:37:12 -05:00
bond_netlink.c bonding: convert netlink to use slave data info api 2014-01-22 21:57:17 -08:00
bond_options.c bonding: correctly handle out of range parameters for lp_interval 2014-03-06 17:06:17 -05:00
bond_options.h bonding: convert slaves to use the new option API 2014-01-22 15:38:44 -08:00
bond_procfs.c bonding: convert primary_reselect to use the new option API 2014-01-22 15:38:43 -08:00
bond_sysfs_slave.c bonding: change name of sysfs dir for bonding slaves 2014-01-22 21:57:05 -08:00
bond_sysfs.c bonding: convert slaves to use the new option API 2014-01-22 15:38:44 -08:00
bonding.h bonding: Fix RTNL: assertion failed at net/core/rtnetlink.c for ab arp monitor 2014-02-26 16:02:56 -05:00
Makefile bonding: add sysfs /slave dir for bond slave devices. 2014-01-17 18:51:58 -08:00