]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: fixed portid bug in sending manage pkt
authorSheng Li <lisheng011@huawei.com>
Tue, 22 Mar 2016 08:06:23 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:57 +0000 (15:45 -0400)
commit15a74744014e757bc9fbb4195a842fbfcc88905e
tree3accd53d992e8623ba6fcc15f83eac57a920eaaa
parent0597f0c425535d155eeda84bc961f7c5bd95fc0e
net: hns: fixed portid bug in sending manage pkt

In chip V2, the default value of port id in tx BD is Zero. If it is not
configurated to the other value, all management packets will be sent out
from port0. So port_id in the tx BD needs to be updated when sending a
management packet.

In V2 chip, when sending mamagement packets, the driver should
config the port id to BD descs.

Signed-off-by: Sheng Li <lisheng011@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.h
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c
drivers/net/ethernet/hisilicon/hns/hns_enet.c