summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2014-03-12 17:31:59 +0800
committerDavid S. Miller <davem@davemloft.net>2014-03-13 15:45:10 -0400
commitfb00bc2e6cd2046282ba4b03f4fe682aee70b2f8 (patch)
treeed8dba22d85be0abf16589af0b564b4c06bb59fc /drivers/net/ethernet
parent6e07a1e0b53d77dbcb08f29d1cca07c6d33a926f (diff)
downloadblackbird-op-linux-fb00bc2e6cd2046282ba4b03f4fe682aee70b2f8.tar.gz
blackbird-op-linux-fb00bc2e6cd2046282ba4b03f4fe682aee70b2f8.zip
bonding: set correct vlan id for alb xmit path
The commit d3ab3ffd1d728d7ee77340e7e7e2c7cfe6a4013e (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: d3ab3ffd1d7 (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>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud