net: hns: fixed the bug about GMACs mac setting
authorSheng Li <lisheng011@huawei.com>
Tue, 22 Mar 2016 08:06:25 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:58 +0000 (15:45 -0400)
commita52047770f2720c9a3d49e2c95a269ef29463415
tree486a4e6eea1b2577deb691a1e0f6bada5e44909e
parentd5679849d134704bd9f9e95d2370eb60abf37ed5
net: hns: fixed the bug about GMACs mac setting

When sending a pause frame out from GMACs, the packets' source MAC address
does not match the GMACs' MAC address. It causes by the condition before
the mac address setting routine for GMACs, the mac address cannot be set
into loacal mac table for service ports. It obviously the condition needs
to be deleted.

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/hns_dsaf_gmac.c