]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix documentation of skb_needs_linearize().
authorRami Rosen <rosenr@marvell.com>
Mon, 27 Aug 2012 23:39:24 +0000 (23:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2012 20:24:02 +0000 (16:24 -0400)
commit4e2aa9593d030cddcf9ec1b657fdd5b818806da5
tree9c0424486348fb56cf87aa91063bd3f336ca9c00
parentec116dcba515a42dacbaea85d88b98fe23478700
net: fix documentation of skb_needs_linearize().

skb_needs_linearize() does not check highmem DMA as it does not call
illegal_highdma() anymore, so there is no need to mention highmem DMA here.

(Indeed, ~NETIF_F_SG flag, which is checked in skb_needs_linearize(), can
be set when illegal_highdma() returns true, and we are assured that
illegal_highdma() is invoked prior to skb_needs_linearize() as
skb_needs_linearize() is a static method called only once.
But ~NETIF_F_SG can be set not only there in this same invocation path.
It can also be set when can_checksum_protocol() returns false).

see commit 70779b561d2701dee5adda44c47ba352138ca262,
Convert skb_need_linearize() to use precomputed features.
Signed-off-by: Rami Rosen <rosenr@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c