projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
547c474
)
sfc: Use skb_fill_page_desc() to simplify passing of page buffers to GRO
author
Ben Hutchings
<bhutchings@solarflare.com>
Fri, 16 Dec 2011 19:14:15 +0000
(19:14 +0000)
committer
Ben Hutchings
<bhutchings@solarflare.com>
Fri, 16 Dec 2011 19:45:01 +0000
(19:45 +0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sfc/rx.c
b/drivers/net/ethernet/sfc/rx.c
index 955b14956deb4fa1abcdf6c7d9b599b07d8be41e..aca349861767fb793b5ba2251f88e87a743fe70c 100644
(file)
--- a/
drivers/net/ethernet/sfc/rx.c
+++ b/
drivers/net/ethernet/sfc/rx.c
@@
-479,11
+479,8
@@
static void efx_rx_packet_gro(struct efx_channel *channel,
if (efx->net_dev->features & NETIF_F_RXHASH)
skb->rxhash = efx_rx_buf_hash(eh);
- skb_frag_set_page(skb, 0, page);
- skb_shinfo(skb)->frags[0].page_offset =
- efx_rx_buf_offset(efx, rx_buf);
- skb_frag_size_set(&skb_shinfo(skb)->frags[0], rx_buf->len);
- skb_shinfo(skb)->nr_frags = 1;
+ skb_fill_page_desc(skb, 0, page,
+ efx_rx_buf_offset(efx, rx_buf), rx_buf->len);
skb->len = rx_buf->len;
skb->data_len = rx_buf->len;