[PATCH 2/2] ice/xdp: not adjust rx buffer for copy mode xdp

2020-07-24 Thread Li RongQing
ice_rx_buf_adjust_pg_offset in copy mode xdp can lead to data corruption, like the following flow: 1. first skb is not for xsk, and forwarded to another device or socket queue 2. seconds skb is for xsk, copy data to xsk memory, and page of skb->data is released 3. rx_buff is r

[PATCH 2/2] ice/xdp: not adjust rx buffer for copy mode xdp

2020-07-16 Thread Li RongQing
ice_rx_buf_adjust_pg_offset in copy mode xdp can lead to data corruption, like the following flow: 1. first skb is not for xsk, and forwarded to another device or socket queue 2. seconds skb is for xsk, copy data to xsk memory, and page of skb->data is released 3. rx_buff is r