]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Allow non-IMP ports to have Broadcom tags enabled
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 20 Jan 2017 20:36:32 +0000 (12:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2017 21:58:31 +0000 (16:58 -0500)
commitb98e24baf7d92aa5d4e2a4351d7dea32d31bab79
tree3f6a0d0259b80798d51a5aefcb2496e3ab95197c
parentb690e55f0ce8e23d7af0a3841310d964ae52f24b
net: dsa: bcm_sf2: Allow non-IMP ports to have Broadcom tags enabled

Parse the "brcm,use-bcm-hdr" boolean property during ports
identification to fill a bitmask of ports that should have Broadcom tags
enabled. This is needed in some configurations where per-packet metadata
can be exchanged using Broadcom tags between the switch and an on-chip
acceleration device.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/brcm,bcm7445-switch-v4.0.txt
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2.h