]> 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)
commitd6821d998e8009bbe1bd0d54859a4a796f2f552f
treee0d11a740849fb01a41596158998c22b76aceb72
parentb3485bbe6a2a8747cae5b8fe23657a5578a2691a
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