Home
last modified time | relevance | path

Searched hist:"5 aed85cec29882d1c4b4b2a01cb75a99efdbe4ed" (Results 1 – 2 of 2) sorted by relevance

/linux/include/net/
H A Ddsa.hdiff 5aed85cec29882d1c4b4b2a01cb75a99efdbe4ed Thu Aug 28 02:04:52 CEST 2014 Florian Fainelli <f.fainelli@gmail.com> net: dsa: allow switches to work without tagging

In case switch port tagging is disabled (voluntarily, or the switch just
does not support it), allow us to continue using the defined set of
dsa_device_ops in net/dsa/slave.c.

We introduce dsa_protocol_is_tagged() to check whether we need to
override skb->protocol and go through the DSA-specifif packet_type
function, or if we just go on and receive the SKB through the normal
path.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/linux/include/linux/
H A Dnetdevice.hdiff 5aed85cec29882d1c4b4b2a01cb75a99efdbe4ed Thu Aug 28 02:04:52 CEST 2014 Florian Fainelli <f.fainelli@gmail.com> net: dsa: allow switches to work without tagging

In case switch port tagging is disabled (voluntarily, or the switch just
does not support it), allow us to continue using the defined set of
dsa_device_ops in net/dsa/slave.c.

We introduce dsa_protocol_is_tagged() to check whether we need to
override skb->protocol and go through the DSA-specifif packet_type
function, or if we just go on and receive the SKB through the normal
path.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>