]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: use build_skb() in RX path
authorShay Agroskin <shayagr@amazon.com>
Tue, 8 Jun 2021 16:01:12 +0000 (19:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 21:41:09 +0000 (14:41 -0700)
commit27c32c811b9f3e52804e7cf6b6c11ac30d6db873
treee0d11a740849fb01a41596158998c22b76aceb72
parent1acd4b2ca6a72040aec5d2e4ee3cc0652744247a
net: ena: use build_skb() in RX path

This patch converts the RX path to use build_skb() for packets larger
than copybreak (set to 256 by default). This function makes the first
descriptor's page to be the linear part of the sk_buff struct buffer.

Also remove the SKB description from the README since most of it no
longer relevant and the parts that are left don't add information.

Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c