OSDN Git Service

Merge branch 'dsa-b53-Turn-on-Broadcom-tags'
authorDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 12:55:16 +0000 (21:55 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 12:55:16 +0000 (21:55 +0900)
commit93f7ea74371273db09b30b9a19ff4d5de22f464d
treebf15a534c047a6e84ac335399f45f33e6d5e011b
parentf444ef510350c262a0532b95592df9e3899053e3
parent7edc58d614d49c3b47ec4b9441d5e95758d0f711
Merge branch 'dsa-b53-Turn-on-Broadcom-tags'

Florian Fainelli says:

====================
net: dsa: b53: Turn on Broadcom tags

This was long overdue, with this patch series, the b53 driver now
turns on Broadcom tags except for 5325 and 5365 which use an older
format that we do not support yet (TBD).

First patch is necessary in order for bgmac, used on BCM5301X and Northstar
Plus to work correctly and successfully send ARP packets back to the requsester.

Second patch is actually a bug fix, but because net/master and net-next/master
diverge in that area, I am targeting net-next/master here.

Finally, the last patch enables Broadcom tags after checking that the CPU port
selected is either, 5, 7 or 8, since those are the only valid combinations
given currently supported HW.

Changes in v3:

- guarded padding with netdev_uses_dsa() to let the non-DSA use cases
  not have a performance hit for smaller packets

- added missing select NET_DSA_TAG_BRCM to drivers/net/dsa/b53/Kconfig

Changes in v2:

- moved a hunk between patch 2 and patch 3 to avoid a bisectability issue
====================

Signed-off-by: David S. Miller <davem@davemloft.net>