[PATCH net-next 1/4] i40e: remove unnecessary memory writes of the next to clean pointer

2021-01-14 Thread Cristian Dumitrescu
. Signed-off-by: Cristian Dumitrescu --- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 30 -- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_xsk.c b/drivers/net/ethernet/intel/i40e/i40e_xsk.c index 47eb9c584a12..dc11ecd1a55c

[PATCH net-next 2/4] i40e: remove unnecessary cleaned_count updates

2021-01-14 Thread Cristian Dumitrescu
For performance reasons, remove the redundant updates of the cleaned_count variable, as its value can be computed based on the ring next-to-clean variable, which is consistently udpated. Signed-off-by: Cristian Dumitrescu --- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 +--- 1 file changed

[PATCH net-next 3/4] i40e: remove the redundant buffer info updates

2021-01-14 Thread Cristian Dumitrescu
For performace reasons, remove the redundant buffer info updates (*bi = NULL). The buffers ready to be cleaned can easily be tracked based on the ring next-to-clean variable, which is consistently updated. Signed-off-by: Cristian Dumitrescu --- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 33

[PATCH net-next 4/4] i40: consolidate handling of XDP program actions

2021-01-14 Thread Cristian Dumitrescu
not. Simplify the behavior of the i40e_clean_rx_irq_zc function, so that the current packet descriptor is dropped when function i40_construct_skb_zc returns an error as opposed to re-processing the same description on the next invocation. Signed-off-by: Cristian Dumitrescu --- drivers/net/ethernet

[PATCH net-next 0/4] i40e: small improvements on XDP path

2021-01-14 Thread Cristian Dumitrescu
This patchset introduces some small and straightforward improvements to the Intel i40e driver XDP path. Each improvement is fully described in its associated patch. Cristian Dumitrescu (4): i40e: remove unnecessary memory writes of the next to clean pointer i40e: remove unnecessary

[PATCH net] i40e: fix potential NULL pointer dereferencing

2021-01-11 Thread Cristian Dumitrescu
NULL when the function i40e_construct_skb_zc is successful, otherwise a NULL *bi will be dereferenced when the work for the current descriptor is eventually restarted. Fixes: 3b4f0b66c2b3 ("i40e, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL") Signed-off-by: Cristian Dumitrescu --- d