]> git.baikalelectronics.ru Git - kernel.git/commit
net: propagate NETIF_F_HIGHDMA to vlans
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 23 Sep 2010 00:46:11 +0000 (00:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 01:27:15 +0000 (18:27 -0700)
commit8abe97918d94324360a06e1f61cae1fcd9c07bc6
tree95312aa92634472fc2329032890203dfddd0b776
parentb7f20c2c4cf8c03f2c74ef4bb4896ca219d886aa
net: propagate NETIF_F_HIGHDMA to vlans

Automatically allows vlans to get NETIF_F_HIGHDMA if underlying device
supports it.

On 32bit arches (and more precisely if CONFIG_HIGHMEM is enabled), it
can help to reduce cost of illegal_highdma() and __skb_linearize()
calls.

Tested on tg3 , bnx2, bonding, this worked very well.

This is a generalization of a patch provided by Yi Zou & Jeff Kirsher.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c