提交 70350b06 编写于 作者: B Ben Hutchings

sfc: Use skb_fill_page_desc() to simplify passing of page buffers to GRO

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
上级 547c474f
...@@ -479,11 +479,8 @@ static void efx_rx_packet_gro(struct efx_channel *channel, ...@@ -479,11 +479,8 @@ static void efx_rx_packet_gro(struct efx_channel *channel,
if (efx->net_dev->features & NETIF_F_RXHASH) if (efx->net_dev->features & NETIF_F_RXHASH)
skb->rxhash = efx_rx_buf_hash(eh); skb->rxhash = efx_rx_buf_hash(eh);
skb_frag_set_page(skb, 0, page); skb_fill_page_desc(skb, 0, page,
skb_shinfo(skb)->frags[0].page_offset = efx_rx_buf_offset(efx, rx_buf), rx_buf->len);
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->len = rx_buf->len; skb->len = rx_buf->len;
skb->data_len = rx_buf->len; skb->data_len = rx_buf->len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册