]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: tell RXCHK if we are using Broadcom tags
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 28 Aug 2014 22:11:03 +0000 (15:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 01:11:47 +0000 (18:11 -0700)
commit14776ba9d2fee9ef5a967e80dda2c9882257b569
tree62875b85916231a50302f738d3b7d9ab17d98f9a
parentf34331c4caed8f0edd9d34114ea3a35ce30cec47
net: systemport: tell RXCHK if we are using Broadcom tags

When Broadcom tags are enabled, e.g: when interfaced to an Ethernet
switch, make sure that we tell the RXCHK engine that it should be
expecting a 4-bytes Broadcom tag after the Ethernet MAC Source Address.

Use netdev_uses_dsa() to check for that condition since that will tell
us if a switch is attached to our network interface.

Fixes: 2912eb7400ef ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c