|
@@ -765,7 +765,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
|
|
/* recalculate len if xdp.data or xdp.data_end were
|
|
/* recalculate len if xdp.data or xdp.data_end were
|
|
* adjusted
|
|
* adjusted
|
|
*/
|
|
*/
|
|
- len = xdp.data_end - xdp.data;
|
|
|
|
|
|
+ len = xdp.data_end - xdp.data + vi->hdr_len;
|
|
/* We can only create skb based on xdp_page. */
|
|
/* We can only create skb based on xdp_page. */
|
|
if (unlikely(xdp_page != page)) {
|
|
if (unlikely(xdp_page != page)) {
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|