bridge: inherit slave devices needed_headroom
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 27 Aug 2013 11:03:53 +0000 (12:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 19:17:09 +0000 (15:17 -0400)
commitfd094808a06e290432fc13c09aae808aea34d2ca
tree090bce6a1c8c17c703c8cd7633e818c648f5033e
parent76bfd8984430be5b19727d09f6ab5e1d7a247f8c
bridge: inherit slave devices needed_headroom

Some slave devices may have set a dev->needed_headroom value which is
different than the default one, most likely in order to prepend a
hardware descriptor in front of the Ethernet frame to send. Whenever a
new slave is added to a bridge, ensure that we update the
needed_headroom value accordingly to account for the slave
needed_headroom value.

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