[Intel-wired-lan] [PATCH v2 intel-net 2/3] ice: gather page_count()'s of each frag right before XDP prog call

2025-01-17 Thread Maciej Fijalkowski
program as it internally can also change the page count of fragments belonging to xdp_buff. Fixes: ac0753391195 ("ice: Store page count inside ice_rx_buf") Reported-and-tested-by: Xu Du Reviewed-by: Przemek Kitszel Co-developed-by: Jacob Keller Signed-off-by: Jacob Keller Signed-off-

[Intel-wired-lan] [PATCH v2 intel-net 3/3] ice: stop storing XDP verdict within ice_rx_buf

2025-01-17 Thread Maciej Fijalkowski
("ice: Add support for XDP multi-buffer on Rx side") Reviewed-by: Przemek Kitszel Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 60 +++ drivers/net/ethernet/intel/ice/ice_txrx.h | 1 - drivers/net/ethernet/intel/ice

[Intel-wired-lan] [PATCH v2 intel-net 1/3] ice: put Rx buffers after being done with current frame

2025-01-17 Thread Maciej Fijalkowski
it within introduced routine. Fixes: 1dc1a7e7f410 ("ice: Centrallize Rx buffer recycling") Reported-and-tested-by: Xu Du Reviewed-by: Przemek Kitszel Co-developed-by: Jacob Keller Signed-off-by: Jacob Keller Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/

[Intel-wired-lan] [PATCH v2 intel-net 0/3] ice: fix Rx data path for heavy 9k MTU traffic

2025-01-17 Thread Maciej Fijalkowski
ng reproducer and Jacob Keller for initial extensive analysis. Thanks, Maciej Maciej Fijalkowski (3): ice: put Rx buffers after being done with current frame ice: gather page_count()'s of each frag right before XDP prog call ice: stop storing XDP verdict within ice_rx_buf drivers/

Re: [Intel-wired-lan] [PATCH intel-net 1/3] ice: put Rx buffers after being done with current frame

2025-01-16 Thread Maciej Fijalkowski
On Thu, Jan 16, 2025 at 06:10:38PM +0100, Petr Oros wrote: > > On 16. 01. 25 16:39, Maciej Fijalkowski wrote: > > Introduce a new helper ice_put_rx_mbuf() that will go through gathered > > frags from current frame and will call ice_put_rx_buf() on them. Current > > lo

Re: [Intel-wired-lan] [PATCH iwl-next] ixgbe: Fix possible skb NULL pointer dereference

2025-01-16 Thread Maciej Fijalkowski
On Wed, Jan 15, 2025 at 03:59:04PM +0100, Piotr Kwapulinski wrote: > Check both skb NULL pointer dereference and error in ixgbe_put_rx_buffer(). Hi Piotr, is this only theoretical or have you encountered any system panic? If so please include the splat so that reviewers will be able to understand

[Intel-wired-lan] [PATCH intel-net 2/3] ice: gather page_count()'s of each frag right before XDP prog call

2025-01-16 Thread Maciej Fijalkowski
ped-by: Jacob Keller Signed-off-by: Jacob Keller Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.

[Intel-wired-lan] [PATCH intel-net 3/3] ice: stop storing XDP verdict within ice_rx_buf

2025-01-16 Thread Maciej Fijalkowski
("ice: Add support for XDP multi-buffer on Rx side") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 61 +++ drivers/net/ethernet/intel/ice/ice_txrx.h | 1 - drivers/net/ethernet/intel/ice/ice_txrx_lib.h | 43 -

[Intel-wired-lan] [PATCH intel-net 0/3] ice: fix Rx data path for heavy 9k MTU traffic

2025-01-16 Thread Maciej Fijalkowski
ice_rx_buf::act related logic (which was mostly introduced for purposes from cited commit). Special thanks to Xu Du for providing reproducer and Jacob Keller for initial extensive analysis. Thanks, Maciej Maciej Fijalkowski (3): ice: put Rx buffers after being done with current frame i

[Intel-wired-lan] [PATCH intel-net 1/3] ice: put Rx buffers after being done with current frame

2025-01-16 Thread Maciej Fijalkowski
it within introduced routine. Fixes: 1dc1a7e7f410 ("ice: Centrallize Rx buffer recycling") Reported-and-tested-by: Xu Du Co-developed-by: Jacob Keller Signed-off-by: Jacob Keller Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 67 +--

Re: [Intel-wired-lan] [PATCH iwl-next v2 1/1] igc: Improve XDP_SETUP_PROG process

2024-12-12 Thread Maciej Fijalkowski
On Wed, Dec 11, 2024 at 09:45:32PM +0800, Song Yoong Siang wrote: > Improve XDP_SETUP_PROG process by avoiding unnecessary link down event. > > This patch is tested by using ip link set xdpdrv command to attach a simple > XDP program which always return XDP_PASS. > > Before this patch, attaching

Re: [Intel-wired-lan] [PATCH iwl-next 1/1] igc: Allow hot-swapping XDP program

2024-11-18 Thread Maciej Fijalkowski
; To avoid this, introduces a check to determine if there is a need to > close and reopen the interface, allowing for seamless hot-swapping of > XDP programs. > > Signed-off-by: Song Yoong Siang Acked-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/igc/igc_xdp.c | 6 -

Re: [Intel-wired-lan] [PATCH v3 net 4/4] ixgbevf: Fix passing 0 to ERR_PTR in ixgbevf_run_xdp()

2024-10-22 Thread Maciej Fijalkowski
return value. > > Fixes: c7aec59657b6 ("ixgbevf: Add XDP support for pass and drop actions") > Reviewed-by: Jacob Keller > Signed-off-by: Yue Haibing Reviewed-by: Maciej Fijalkowski > --- > .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 23 ---

Re: [Intel-wired-lan] [PATCH v3 net 3/4] ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()

2024-10-22 Thread Maciej Fijalkowski
return value. > > Fixes: 924708081629 ("ixgbe: add XDP support for pass and drop actions") > Reviewed-by: Jacob Keller > Signed-off-by: Yue Haibing Reviewed-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 23 --- > 1

Re: [Intel-wired-lan] [PATCH v2 net 4/4] ixgbevf: Fix passing 0 to ERR_PTR in ixgbevf_run_xdp()

2024-10-18 Thread Maciej Fijalkowski
On Fri, Oct 18, 2024 at 10:37:34AM +0800, Yue Haibing wrote: > ixgbevf_run_xdp() converts customed xdp action to a negative error code > with the sk_buff pointer type which be checked with IS_ERR in > ixgbevf_clean_rx_irq(). Remove this error pointer handing instead use > plain int return value. >

Re: [Intel-wired-lan] [PATCH v2 net 3/4] ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()

2024-10-18 Thread Maciej Fijalkowski
On Fri, Oct 18, 2024 at 10:37:33AM +0800, Yue Haibing wrote: > ixgbe_run_xdp() converts customed xdp action to a negative error code > with the sk_buff pointer type which be checked with IS_ERR in > ixgbe_clean_rx_irq(). Remove this error pointer handing instead use > plain int return value. > > F

Re: [Intel-wired-lan] [PATCH v2 net 2/4] igb: Fix passing 0 to ERR_PTR in igb_run_xdp()

2024-10-18 Thread Maciej Fijalkowski
return value. > > Fixes: 9cbc948b5a20 ("igb: add XDP support") > Signed-off-by: Yue Haibing Reviewed-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/igb/igb_main.c | 22 -- > 1 file changed, 8 insertions(+), 14 deletions(-) > > diff --g

Re: [Intel-wired-lan] [PATCH v2 net 1/4] igc: Fix passing 0 to ERR_PTR in igc_xdp_run_prog()

2024-10-18 Thread Maciej Fijalkowski
urn value to fix this smatch warnings: > > drivers/net/ethernet/intel/igc/igc_main.c:2533 > igc_xdp_run_prog() warn: passing zero to 'ERR_PTR' > > Fixes: 26575105d6ed ("igc: Add initial XDP support") > Signed-off-by: Yue Haibing Reviewed-by: Maciej Fij

Re: [Intel-wired-lan] [PATCH iwl-next v9 0/6] igb: Add support for AF_XDP zero-copy

2024-10-18 Thread Maciej Fijalkowski
1.000 160 > > [0]: > https://lore.kernel.org/intel-wired-lan/20230704095915.9750-1-sriram.yagnara...@est.tech/ > [1]: https://www.qemu.org/docs/master/system/devices/igb.html > [2]: https://github.com/xdp-project/bpf-examples/tree/master/AF_XDP-example > > v3-&g

Re: [Intel-wired-lan] [PATCH iwl-next v9 6/6] igb: Add AF_XDP zero-copy Tx support

2024-10-18 Thread Maciej Fijalkowski
mutual exclusion. > > Signed-off-by: Sriram Yagnaraman > [Kurt: Set olinfo_status in igb_xmit_zc() so that frames are transmitted, >Use READ_ONCE() for xsk_pool and check Tx disabled and carrier in >igb_xmit_zc(), Add FIXME for RS bit] > Signed-off-by: Kurt Kanze

Re: [Intel-wired-lan] [PATCH net] igc: Fix passing 0 to ERR_PTR in igc_xdp_run_prog()

2024-10-17 Thread Maciej Fijalkowski
On Thu, Oct 17, 2024 at 11:55:05AM +0800, Yue Haibing wrote: > On 2024/10/17 7:12, Jacob Keller wrote: > > > > > > On 10/16/2024 4:06 PM, Jacob Keller wrote: > >> > >> > >> On 10/16/2024 11:53 AM, Simon Horman wrote: > >>> On Wed, Oct 16, 2024 at 06:53:10PM +0800, Yue Haibing wrote: > Return

Re: [Intel-wired-lan] [PATCH iwl-next v8 6/6] igb: Add AF_XDP zero-copy Tx support

2024-10-15 Thread Maciej Fijalkowski
mutual exclusion. > > Signed-off-by: Sriram Yagnaraman > [Kurt: Set olinfo_status in igb_xmit_zc() so that frames are transmitted, >Use READ_ONCE() for xsk_pool and check Tx disabled and carrier in >igb_xmit_zc(), Add FIXME for RS bit] > Signed-off-by:

Re: [Intel-wired-lan] [PATCH iwl-next v8 5/6] igb: Add AF_XDP zero-copy Rx support

2024-10-15 Thread Maciej Fijalkowski
ONCE() xsk_pool, likelyfy for XDP_REDIRECT case] > Signed-off-by: Kurt Kanzenbach Acked-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/igb/igb.h | 6 + > drivers/net/ethernet/intel/igb/igb_main.c | 79 ++-- > drivers/net/ethernet/intel/igb/igb_xsk.c | 298

Re: [Intel-wired-lan] [PATCH iwl-next v8 4/6] igb: Add XDP finalize and stats update functions

2024-10-15 Thread Maciej Fijalkowski
On Fri, Oct 11, 2024 at 11:01:02AM +0200, Kurt Kanzenbach wrote: > Move XDP finalize and Rx statistics update into separate functions. This > way, they can be reused by the XDP and XDP/ZC code later. > > Signed-off-by: Kurt Kanzenbach Acked-by: Maciej Fijalkowski > --- > dr

Re: [Intel-wired-lan] [PATCH iwl-next v7 5/5] igb: Add AF_XDP zero-copy Tx support

2024-10-07 Thread Maciej Fijalkowski
mutual exclusion. > > Signed-off-by: Sriram Yagnaraman > [Kurt: Set olinfo_status in igb_xmit_zc() so that frames are transmitted, >Use READ_ONCE() for xsk_pool and check Tx disabled and carrier in >igb_xmit_zc()] > Signed-off-by: Kurt Kanzenbach > Reviewed

Re: [Intel-wired-lan] [PATCH iwl-next v7 1/5] igb: Remove static qualifiers

2024-10-07 Thread Maciej Fijalkowski
Signed-off-by: Sriram Yagnaraman > [Kurt: Split patches, inline small XDP functions] > Signed-off-by: Kurt Kanzenbach Acked-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/igb/igb.h | 29 > drivers/net/ethernet/intel/igb/igb_main.c | 37 >

Re: [Intel-wired-lan] [PATCH iwl-next v7 4/5] igb: Add AF_XDP zero-copy Rx support

2024-10-07 Thread Maciej Fijalkowski
On Mon, Oct 07, 2024 at 02:31:26PM +0200, Kurt Kanzenbach wrote: > From: Sriram Yagnaraman > > Add support for AF_XDP zero-copy receive path. > > When AF_XDP zero-copy is enabled, the rx buffers are allocated from the > xsk buff pool using igb_alloc_rx_buffers_zc(). > > Use xsk_pool_get_rx_fram

Re: [Intel-wired-lan] [PATCH iwl-net 1/2] ice: Fix entering Safe Mode

2024-09-20 Thread Maciej Fijalkowski
On Fri, Sep 20, 2024 at 01:55:09PM +0200, Marcin Szycik wrote: > If DDP package is missing or corrupted, the driver should enter Safe Mode. > Instead, an error is returned and probe fails. > > Don't check return value of ice_init_ddp_config() to fix this. no one else checks the retval after your

Re: [Intel-wired-lan] [PATCH iwl-net] ice: xsk: fix Rx allocation on non-coherent systems

2024-09-05 Thread Maciej Fijalkowski
On Tue, Sep 03, 2024 at 08:05:11PM +0200, Maciej Fijalkowski wrote: > In cases when synchronizing DMA operations is necessary, > xsk_buff_alloc_batch() returns a single buffer instead of the requested > count. Detect such situation when filling HW Rx ring in ZC driver and > use xsk_buf

Re: [Intel-wired-lan] [PATCH iwl-next v3] i40e: add ability to reset vf for tx and rx mdd events

2024-09-03 Thread Maciej Fijalkowski
On Fri, Aug 30, 2024 at 09:28:07PM +0200, Aleksandr Loktionov wrote: > In cases when vf sends malformed packets that are classified as > malicious, sometimes it causes tx queue to freeze. This frozen queue can be > stuck for several minutes being unusable. When mdd event occurs, there is a > posibi

[Intel-wired-lan] [PATCH iwl-net] ice: xsk: fix Rx allocation on non-coherent systems

2024-09-03 Thread Maciej Fijalkowski
-tested-by: Dries De Winter Fixes: db804cfc21e9 ("ice: Use the xsk batched rx allocation interface") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ic

Re: [Intel-wired-lan] [PATCH iwl-net v4 4/6] ice: check ICE_VSI_DOWN under rtnl_lock when preparing for reset

2024-08-23 Thread Maciej Fijalkowski
N > under rtnl_lock. > > Fixes: 0f9d5027a749 ("ice: Refactor VSI allocation, deletion and rebuild > flow") > Reviewed-by: Wojciech Drewek > Reviewed-by: Jacob Keller > Tested-by: Chandan Kumar Rout > Signed-off-by: Larysa Zaremba Reviewed-by: Maciej Fijalko

Re: [Intel-wired-lan] [PATCH iwl-net v4 2/6] ice: protect XDP configuration with a mutex

2024-08-23 Thread Maciej Fijalkowski
nt by deconfiguring VSI when coalesce allocation fails. > > Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") > Fixes: efc2214b6047 ("ice: Add support for XDP") > Reviewed-by: Wojciech Drewek > Reviewed-by: Jacob Keller > Tested-by: Chandan Kumar Rout > Signed-off-by: Larysa Zaremba Reviewed-by: Maciej Fijalkowski > ---

Re: [Intel-wired-lan] [PATCH iwl-net v4 1/6] ice: move netif_queue_set_napi to rtnl-protected sections

2024-08-23 Thread Maciej Fijalkowski
after_hwframe+0x76/0x7e > [ +0.05] RIP: 0033:0x7f2033593154 > > Fixes: 080b0c8d6d26 ("ice: Fix ASSERT_RTNL() warning during certain > scenarios") > Fixes: 91fdbce7e8d6 ("ice: Add support in the driver for associating queue > with napi") > Reviewed-b

Re: [Intel-wired-lan] [PATCH iwl-net v3 4/6] ice: check ICE_VSI_DOWN under rtnl_lock when preparing for reset

2024-08-22 Thread Maciej Fijalkowski
On Thu, Aug 22, 2024 at 02:56:50PM +0200, Larysa Zaremba wrote: > On Thu, Aug 22, 2024 at 01:34:33PM +0200, Maciej Fijalkowski wrote: > > On Mon, Aug 19, 2024 at 12:05:41PM +0200, Larysa Zaremba wrote: > > > Consider the following scenario: >

Re: [Intel-wired-lan] [PATCH iwl-net] igb: Always call igb_xdp_ring_update_tail() under Tx lock

2024-08-22 Thread Maciej Fijalkowski
and slow paths. Furthermore, the current XDP > implementation is racy on tail updates. > > Fixes: 9cbc948b5a20 ("igb: add XDP support") > Signed-off-by: Sriram Yagnaraman > [Kurt: Add lockdep assert and fixes tag] > Signed-off-by: Kurt Kanzenbach Acked-by: Maciej Fijalkowski T

Re: [Intel-wired-lan] [PATCH iwl-net v3 5/6] ice: remove ICE_CFG_BUSY locking from AF_XDP code

2024-08-22 Thread Maciej Fijalkowski
> > Remove ICE_CFG_BUSY locking from ice_qp_dis() and ice_qp_ena(). > > Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") > Reviewed-by: Wojciech Drewek > Reviewed-by: Jacob Keller > Tested-by: Chandan Kumar Rout > Signed-off-by: Larysa Zaremba Reviewed-by: Ma

Re: [Intel-wired-lan] [PATCH iwl-net v3 2/6] ice: protect XDP configuration with a mutex

2024-08-22 Thread Maciej Fijalkowski
On Mon, Aug 19, 2024 at 12:05:39PM +0200, Larysa Zaremba wrote: > The main threat to data consistency in ice_xdp() is a possible asynchronous > PF reset. It can be triggered by a user or by TX timeout handler. > > XDP setup and PF reset code access the same resources in the following > sections: >

Re: [Intel-wired-lan] [PATCH iwl-net v3 3/6] ice: check for XDP rings instead of bpf program when unconfiguring

2024-08-22 Thread Maciej Fijalkowski
> > Reviewed-by: Wojciech Drewek > Reviewed-by: Jacob Keller > Tested-by: Chandan Kumar Rout > Signed-off-by: Larysa Zaremba Acked-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/ice/ice_lib.c | 4 ++-- > drivers/net/ethernet/intel/ice/ice_main.c | 4 ++

Re: [Intel-wired-lan] [PATCH iwl-net v3 6/6] ice: do not bring the VSI up, if it was down before the XDP setup

2024-08-22 Thread Maciej Fijalkowski
gt; later bring it up only in such case. > > Fixes: efc2214b6047 ("ice: Add support for XDP") > Reviewed-by: Wojciech Drewek > Reviewed-by: Jacob Keller > Tested-by: Chandan Kumar Rout > Signed-off-by: Larysa Zaremba Acked-by: Maciej Fijalkowski > --- &g

Re: [Intel-wired-lan] [PATCH iwl-net v3 4/6] ice: check ICE_VSI_DOWN under rtnl_lock when preparing for reset

2024-08-22 Thread Maciej Fijalkowski
On Mon, Aug 19, 2024 at 12:05:41PM +0200, Larysa Zaremba wrote: > Consider the following scenario: > > .ndo_bpf()| ice_prepare_for_reset() | > |___| > rtnl_lock() |

Re: [Intel-wired-lan] [PATCH iwl-net v4] ice: Add netif_device_attach/detach into PF reset flow

2024-08-20 Thread Maciej Fijalkowski
On Tue, Aug 20, 2024 at 06:15:24PM +0200, Dawid Osuchowski wrote: > Ethtool callbacks can be executed while reset is in progress and try to > access deleted resources, e.g. getting coalesce settings can result in a > NULL pointer dereference seen below. > > Reproduction steps: > Once the driver is

Re: [Intel-wired-lan] [PATCH iwl-net v3 1/6] ice: move netif_queue_set_napi to rtnl-protected sections

2024-08-20 Thread Maciej Fijalkowski
On Tue, Aug 20, 2024 at 02:47:31PM +0200, Larysa Zaremba wrote: > On Tue, Aug 20, 2024 at 02:31:51PM +0200, Maciej Fijalkowski wrote: > > On Mon, Aug 19, 2024 at 12:05:38PM +0200, Larysa Zaremba wrote: > > > Currently, netif_queue_set_napi() is called from ice_vsi_rebuild() that

Re: [Intel-wired-lan] [PATCH iwl-net v3 1/6] ice: move netif_queue_set_napi to rtnl-protected sections

2024-08-20 Thread Maciej Fijalkowski
On Mon, Aug 19, 2024 at 12:05:38PM +0200, Larysa Zaremba wrote: > Currently, netif_queue_set_napi() is called from ice_vsi_rebuild() that is > not rtnl-locked when called from the reset. This creates the need to take > the rtnl_lock just for a single function and complicates the > synchronization w

Re: [Intel-wired-lan] [PATCH iwl-next v6 6/6] igb: Add AF_XDP zero-copy Tx support

2024-08-19 Thread Maciej Fijalkowski
ivers/net/ethernet/intel/igb/igb.h | 2 + > drivers/net/ethernet/intel/igb/igb_main.c | 61 > ++- > drivers/net/ethernet/intel/igb/igb_xsk.c | 59 ++ > 3 files changed, 112 insertions(+), 10 deletions(-) > Reviewed-by: Maciej Fijalkowski

Re: [Intel-wired-lan] [PATCH iwl-next v6 5/6] igb: Add AF_XDP zero-copy Rx support

2024-08-19 Thread Maciej Fijalkowski
On Fri, Aug 16, 2024 at 11:24:04AM +0200, Kurt Kanzenbach wrote: > From: Sriram Yagnaraman > > Add support for AF_XDP zero-copy receive path. > > When AF_XDP zero-copy is enabled, the rx buffers are allocated from the > xsk buff pool using igb_alloc_rx_buffers_zc(). > > Use xsk_pool_get_rx_fram

Re: [Intel-wired-lan] [PATCH iwl-next v6 4/6] igb: Introduce XSK data structures and helpers

2024-08-19 Thread Maciej Fijalkowski
On Mon, Aug 19, 2024 at 03:41:20PM +0200, Kurt Kanzenbach wrote: > On Mon Aug 19 2024, Maciej Fijalkowski wrote: > > On Fri, Aug 16, 2024 at 11:24:03AM +0200, Kurt Kanzenbach wrote: > >> From: Sriram Yagnaraman > >> > >> Add the following ring flag: > &

Re: [Intel-wired-lan] [PATCH iwl-next v6 4/6] igb: Introduce XSK data structures and helpers

2024-08-19 Thread Maciej Fijalkowski
; > Signed-off-by: Sriram Yagnaraman Sriram's mail bounces unfortunately, is it possible to grab his current address? You could also update the copyright date in igb_xsk.c. Besides: Reviewed-by: Maciej Fijalkowski > [Kurt: Add READ/WRITE_ONCE(), synchronize_net(), >re

Re: [Intel-wired-lan] [PATCH iwl-next v6 3/6] igb: Introduce igb_xdp_is_enabled()

2024-08-19 Thread Maciej Fijalkowski
[Kurt: Split patches and use READ_ONCE()] > Signed-off-by: Kurt Kanzenbach Acked-by: Maciej Fijalkowski > --- > drivers/net/ethernet/intel/igb/igb.h | 5 + > drivers/net/ethernet/intel/igb/igb_main.c | 8 +--- > 2 files changed, 10 insertions(+), 3 deletions(-) &g

Re: [Intel-wired-lan] [PATCH iwl-next v6 2/6] igb: Remove static qualifiers

2024-08-19 Thread Maciej Fijalkowski
On Fri, Aug 16, 2024 at 11:24:01AM +0200, Kurt Kanzenbach wrote: > From: Sriram Yagnaraman > > Remove static qualifiers on the following functions to be able to call > from XSK specific file that is added in the later patches: > - igb_xdp_tx_queue_mapping() > - igb_xdp_ring_update_tail() > - igb_

Re: [Intel-wired-lan] [PATCH iwl-next v6 1/6] igb: Always call igb_xdp_ring_update_tail() under Tx lock

2024-08-19 Thread Maciej Fijalkowski
On Fri, Aug 16, 2024 at 11:24:00AM +0200, Kurt Kanzenbach wrote: > From: Sriram Yagnaraman > > Always call igb_xdp_ring_update_tail() under __netif_tx_lock(), add a > comment to indicate that. This is needed to share the same TX ring between > XDP, XSK and slow paths. Sorry for being a-hole here

Re: [Intel-wired-lan] [PATCH iwl-next v6 0/6] igb: Add support for AF_XDP zero-copy

2024-08-16 Thread Maciej Fijalkowski
15.9750-1-sriram.yagnara...@est.tech/ > [1]: https://www.qemu.org/docs/master/system/devices/igb.html > [2]: https://github.com/xdp-project/bpf-examples/tree/master/AF_XDP-example > > v3->v4: > - NULL check buffer_info in igb_dump before dereferencing (Simon Horman) > > v2->

Re: [Intel-wired-lan] [PATCH iwl-net v2] ice: Add netif_device_attach/detach into PF reset flow

2024-08-13 Thread Maciej Fijalkowski
On Tue, Aug 13, 2024 at 05:31:37PM +0200, Dawid Osuchowski wrote: > On 13.08.2024 13:49, Maciej Fijalkowski wrote: > > What about other intel drivers tho? > > I have not performed detailed analysis of other intel ethernet drivers in > this regard, but it is surely a topic worth

Re: [Intel-wired-lan] [PATCH iwl-net v2] ice: Add netif_device_attach/detach into PF reset flow

2024-08-13 Thread Maciej Fijalkowski
On Mon, Aug 12, 2024 at 02:50:09PM +0200, Dawid Osuchowski wrote: > Ethtool callbacks can be executed while reset is in progress and try to > access deleted resources, e.g. getting coalesce settings can result in a > NULL pointer dereference seen below. > > Reproduction steps: > Once the driver is

Re: [Intel-wired-lan] [PATCH iwl-net v2 2/6] ice: protect XDP configuration with a mutex

2024-08-13 Thread Maciej Fijalkowski
On Wed, Jul 24, 2024 at 06:48:33PM +0200, Larysa Zaremba wrote: > The main threat to data consistency in ice_xdp() is a possible asynchronous > PF reset. It can be triggered by a user or by TX timeout handler. > > XDP setup and PF reset code access the same resources in the following > sections: >

Re: [Intel-wired-lan] [PATCH iwl-net v2 5/6] ice: remove ICE_CFG_BUSY locking from AF_XDP code

2024-08-13 Thread Maciej Fijalkowski
On Mon, Aug 12, 2024 at 05:59:21PM +0200, Larysa Zaremba wrote: > On Mon, Aug 12, 2024 at 03:03:19PM +0200, Maciej Fijalkowski wrote: > > On Wed, Jul 24, 2024 at 06:48:36PM +0200, Larysa Zaremba wrote: > > > Locking used in ice_qp_ena() and ice_qp_dis() does pretty much noth

Re: [Intel-wired-lan] [PATCH iwl-net v2 5/6] ice: remove ICE_CFG_BUSY locking from AF_XDP code

2024-08-12 Thread Maciej Fijalkowski
On Wed, Jul 24, 2024 at 06:48:36PM +0200, Larysa Zaremba wrote: > Locking used in ice_qp_ena() and ice_qp_dis() does pretty much nothing, > because ICE_CFG_BUSY is a state flag that is supposed to be set in a PF > state, not VSI one. Therefore it does not protect the queue pair from > e.g. reset. >

Re: [Intel-wired-lan] [PATCH iwl-net v2 3/6] ice: check for XDP rings instead of bpf program when unconfiguring

2024-08-12 Thread Maciej Fijalkowski
On Wed, Jul 24, 2024 at 06:48:34PM +0200, Larysa Zaremba wrote: > If VSI rebuild is pending, .ndo_bpf() can attach/detach the XDP program on > VSI without applying new ring configuration. When unconfiguring the VSI, we > can encounter the state in which there is an XDP program but no XDP rings > to

[Intel-wired-lan] [PATCH iwl-net 3/3] ice: fix truesize operations for PAGE_SIZE >= 8192

2024-08-07 Thread Maciej Fijalkowski
6-9311-946a06d03...@redhat.com/ Fixes: 1dc1a7e7f410 ("ice: Centrallize Rx buffer recycling") Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_base.c | 21 ++- drivers/ne

[Intel-wired-lan] [PATCH iwl-net 2/3] ice: fix ICE_LAST_OFFSET formula

2024-08-07 Thread Maciej Fijalkowski
For bigger PAGE_SIZE archs, ice driver works on 3k Rx buffers. Therefore, ICE_LAST_OFFSET should take into account ICE_RXBUF_3072, not ICE_RXBUF_2048. Fixes: 7237f5b0dba4 ("ice: introduce legacy Rx flag") Suggested-by: Luiz Capitulino Signed-off-by: Maciej Fijalkowski --- drivers/ne

[Intel-wired-lan] [PATCH iwl-net 0/3] ice: fix Rx data path for PAGE_SIZE >= 8192

2024-08-07 Thread Maciej Fijalkowski
accounted per each buffer. Thanks, Maciej Maciej Fijalkowski (3): ice: fix page reuse when PAGE_SIZE is over 8k ice: fix ICE_LAST_OFFSET formula ice: fix truesize operations for PAGE_SIZE >= 8192 drivers/net/ethernet/intel/ice/ice_base.c | 21 +- drivers/net/ethernet/intel/

[Intel-wired-lan] [PATCH iwl-net 1/3] ice: fix page reuse when PAGE_SIZE is over 8k

2024-08-07 Thread Maciej Fijalkowski
its value vs ice_rx_buf::pagecnt_bias when making the decision regarding page reuse Fixes: 2b245cb29421 ("ice: Implement transmit and NAPI support") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 12 +++- 1 file changed, 3 insertions(+), 9 delet

[Intel-wired-lan] [PATCH v4 iwl-net 8/8] ice: xsk: fix txq interrupt mapping

2024-06-27 Thread Maciej Fijalkowski
) Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/ice

[Intel-wired-lan] [PATCH v4 iwl-net 7/8] ice: add missing WRITE_ONCE when clearing ice_rx_ring::xdp_prog

2024-06-27 Thread Maciej Fijalkowski
It is read by data path and modified from process context on remote cpu so it is needed to use WRITE_ONCE to clear the pointer. Fixes: efc2214b6047 ("ice: Add support for XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-

[Intel-wired-lan] [PATCH v4 iwl-net 6/8] ice: improve updating ice_{t, r}x_ring::xsk_pool

2024-06-27 Thread Maciej Fijalkowski
: 2d4238f55697 ("ice: Add support for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice.h | 11 ++-- drivers/net/ethernet/intel/ice/ice_base.c | 4 +- drivers/ne

[Intel-wired-lan] [PATCH v4 iwl-net 5/8] ice: toggle netif_carrier when setting up XSK pool

2024-06-27 Thread Maciej Fijalkowski
ice_get_link_status() tells us that physical link is up. Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 8 +++- 1 file

[Intel-wired-lan] [PATCH v4 iwl-net 4/8] ice: modify error handling when setting XSK pool in ndo_bpf

2024-06-27 Thread Maciej Fijalkowski
ngent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 30 +--- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_xsk.c index ba50af9a592

[Intel-wired-lan] [PATCH v4 iwl-net 3/8] ice: replace synchronize_rcu with synchronize_net

2024-06-27 Thread Maciej Fijalkowski
. Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-)

[Intel-wired-lan] [PATCH v4 iwl-net 2/8] ice: don't busy wait for Rx queue disable in ice_qp_dis()

2024-06-27 Thread Maciej Fijalkowski
_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/

[Intel-wired-lan] [PATCH v4 iwl-net 1/8] ice: respect netif readiness in AF_XDP ZC related ndo's

2024-06-27 Thread Maciej Fijalkowski
port for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Michal Kubiak Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/ne

[Intel-wired-lan] [PATCH v4 iwl-net 0/8] ice: fix AF_XDP ZC timeout and concurrency issues

2024-06-27 Thread Maciej Fijalkowski
non] - add review and test tags v1->v2: - fix kdoc issues in patch 6 and 8 - drop Larysa's patches for now Maciej Fijalkowski (7): ice: don't busy wait for Rx queue disable in ice_qp_dis() ice: replace synchronize_rcu with synchronize_net ice: modify error handling when setting XSK

Re: [Intel-wired-lan] [iwl-next v5 07/15] ice: implement netdev for subfunction

2024-06-27 Thread Maciej Fijalkowski
On Thu, Jun 06, 2024 at 01:24:55PM +0200, Michal Swiatkowski wrote: > From: Piotr Raczynski > > Configure netdevice for subfunction usecase. Mostly it is reusing ops > from the PF netdevice. > > SF netdev is linked to devlink port registered after SF activation. > > Reviewed-by: Simon Horman >

Re: [Intel-wired-lan] [iwl-next v5 04/15] ice: treat subfunction VSI the same as PF VSI

2024-06-27 Thread Maciej Fijalkowski
On Thu, Jun 06, 2024 at 01:24:52PM +0200, Michal Swiatkowski wrote: > When subfunction VSI is open the same code as for PF VSI should be > executed. Also when up is complete. Reflect that in code by adding > subfunction VSI to consideration. > > In case of stopping, PF doesn't have additional task

Re: [Intel-wired-lan] [PATCH v3 iwl-net 5/8] ice: toggle netif_carrier when setting up XSK pool

2024-06-26 Thread Maciej Fijalkowski
On Wed, Jun 26, 2024 at 02:21:39PM +0200, Michal Kubiak wrote: > On Tue, Jun 04, 2024 at 03:21:52PM +0200, Maciej Fijalkowski wrote: > > This so we prevent Tx timeout issues. One of conditions checked on > > running in the background dev_watchdog() is netif_carrier_ok(), so let >

Re: [Intel-wired-lan] [PATCH iwl-net v2] i40e: Fix XDP program unloading while removing the driver

2024-06-26 Thread Maciej Fijalkowski
rt frags"); > @@ -13301,14 +13305,9 @@ static int i40e_xdp_setup(struct i40e_vsi *vsi, > struct bpf_prog *prog, > > /* When turning XDP on->off/off->on we reset and rebuild the rings. */ > need_reset = (i40e_enabled_xdp_vsi(vsi) != !!prog); > - > if (need_reset) >

Re: [Intel-wired-lan] [PATCH v3 iwl-net 1/8] ice: respect netif readiness in AF_XDP ZC related ndo's

2024-06-13 Thread Maciej Fijalkowski
On Thu, Jun 13, 2024 at 05:51:25PM +0200, Maciej Fijalkowski wrote: > On Wed, Jun 12, 2024 at 11:15:31AM +0200, Alexander Lobakin wrote: > > From: Alexander Lobakin > > Date: Wed, 12 Jun 2024 11:09:10 +0200 > > > > > From: Maciej Fijalkowski > > >

Re: [Intel-wired-lan] [PATCH v3 iwl-net 1/8] ice: respect netif readiness in AF_XDP ZC related ndo's

2024-06-13 Thread Maciej Fijalkowski
On Wed, Jun 12, 2024 at 11:15:31AM +0200, Alexander Lobakin wrote: > From: Alexander Lobakin > Date: Wed, 12 Jun 2024 11:09:10 +0200 > > > From: Maciej Fijalkowski > > Date: Tue, 11 Jun 2024 16:21:27 +0200 > > [...] > > >>>> diff --git a/drive

Re: [Intel-wired-lan] [PATCH iwl-next] igc: Get rid of spurious interrupts

2024-06-12 Thread Maciej Fijalkowski
nly trigger the Rx interrupts in case of real allocation > failures. Introduce a new flag for signaling that condition. > > [1] - > https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=3be507547e6177e5c808544bd6a2efa2c7f1d436 > > Signed-off-by: Kurt Kanzenbach

Re: [Intel-wired-lan] [PATCH v3 iwl-net 1/8] ice: respect netif readiness in AF_XDP ZC related ndo's

2024-06-11 Thread Maciej Fijalkowski
On Tue, Jun 11, 2024 at 01:59:37PM +0200, Alexander Lobakin wrote: > From: Maciej Fijalkowski > Date: Tue, 4 Jun 2024 15:21:48 +0200 > > > From: Michal Kubiak > > > > Address a scenario in which XSK ZC Tx produces descriptors to XDP Tx > > ring when link is ei

[Intel-wired-lan] [PATCH v3 iwl-net 8/8] ice: xsk: fix txq interrupt mapping

2024-06-04 Thread Maciej Fijalkowski
) Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/ice

[Intel-wired-lan] [PATCH v3 iwl-net 7/8] ice: add missing WRITE_ONCE when clearing ice_rx_ring::xdp_prog

2024-06-04 Thread Maciej Fijalkowski
It is read by data path and modified from process context on remote cpu so it is needed to use WRITE_ONCE to clear the pointer. Fixes: efc2214b6047 ("ice: Add support for XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-

[Intel-wired-lan] [PATCH v3 iwl-net 6/8] ice: improve updating ice_{t, r}x_ring::xsk_pool

2024-06-04 Thread Maciej Fijalkowski
: 2d4238f55697 ("ice: Add support for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice.h | 11 ++-- drivers/net/ethernet/intel/ice/ice_base.c | 4 +- drivers/ne

[Intel-wired-lan] [PATCH v3 iwl-net 5/8] ice: toggle netif_carrier when setting up XSK pool

2024-06-04 Thread Maciej Fijalkowski
F_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet

[Intel-wired-lan] [PATCH v3 iwl-net 4/8] ice: modify error handling when setting XSK pool in ndo_bpf

2024-06-04 Thread Maciej Fijalkowski
ngent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 30 +--- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_xsk.c index b6f4ddb744d

[Intel-wired-lan] [PATCH v3 iwl-net 3/8] ice: replace synchronize_rcu with synchronize_net

2024-06-04 Thread Maciej Fijalkowski
. Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-)

[Intel-wired-lan] [PATCH v3 iwl-net 2/8] ice: don't busy wait for Rx queue disable in ice_qp_dis()

2024-06-04 Thread Maciej Fijalkowski
_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/

[Intel-wired-lan] [PATCH v3 iwl-net 1/8] ice: respect netif readiness in AF_XDP ZC related ndo's

2024-06-04 Thread Maciej Fijalkowski
port for AF_XDP") Reviewed-by: Shannon Nelson Tested-by: Chandan Kumar Rout (A Contingent Worker at Intel) Signed-off-by: Michal Kubiak Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/ne

[Intel-wired-lan] [PATCH v3 iwl-net 0/8] ice: fix AF_XDP ZC timeout and concurrency issues

2024-06-04 Thread Maciej Fijalkowski
and test tags v1->v2: - fix kdoc issues in patch 6 and 8 - drop Larysa's patches for now Maciej Fijalkowski (7): ice: don't busy wait for Rx queue disable in ice_qp_dis() ice: replace synchronize_rcu with synchronize_net ice: modify error handling when setting XSK pool in ndo_b

Re: [Intel-wired-lan] [PATCH v2 iwl-net 6/8] ice: improve updating ice_{t, r}x_ring::xsk_pool

2024-06-04 Thread Maciej Fijalkowski
On Tue, Jun 04, 2024 at 12:52:16PM +0200, Maciej Fijalkowski wrote: > On Fri, May 31, 2024 at 04:49:05PM -0700, Nelson, Shannon wrote: > > On 5/29/2024 4:23 AM, Maciej Fijalkowski wrote: > > > > > > xsk_buff_pool pointers that ice ring structs hold are updated via >

Re: [Intel-wired-lan] [PATCH v2 iwl-net 6/8] ice: improve updating ice_{t, r}x_ring::xsk_pool

2024-06-04 Thread Maciej Fijalkowski
On Fri, May 31, 2024 at 04:49:05PM -0700, Nelson, Shannon wrote: > On 5/29/2024 4:23 AM, Maciej Fijalkowski wrote: > > > > xsk_buff_pool pointers that ice ring structs hold are updated via > > ndo_bpf that is executed in process context while it can be read by > >

Re: [Intel-wired-lan] [PATCH v2 iwl-net 3/8] ice: replace synchronize_rcu with synchronize_net

2024-06-04 Thread Maciej Fijalkowski
On Fri, May 31, 2024 at 04:49:01PM -0700, Nelson, Shannon wrote: > On 5/29/2024 4:23 AM, Maciej Fijalkowski wrote: > > > > Given that ice_qp_dis() is called under rtnl_lock, synchronize_net() can > > be called instead of synchronize_rcu() so that XDP rings can finish its &g

[Intel-wired-lan] [PATCH v2 iwl-net 8/8] ice: xsk: fix txq interrupt mapping

2024-05-29 Thread Maciej Fijalkowski
Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_xsk.c index 693f0e3a37ce..85aa841a16bb 10

[Intel-wired-lan] [PATCH v2 iwl-net 7/8] ice: add missing WRITE_ONCE when clearing ice_rx_ring::xdp_prog

2024-05-29 Thread Maciej Fijalkowski
It is read by data path and modified from process context on remote cpu so it is needed to use WRITE_ONCE to clear the pointer. Fixes: efc2214b6047 ("ice: Add support for XDP") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_txrx.c | 2 +- 1 file changed, 1

[Intel-wired-lan] [PATCH v2 iwl-net 6/8] ice: improve updating ice_{t, r}x_ring::xsk_pool

2024-05-29 Thread Maciej Fijalkowski
: 2d4238f55697 ("ice: Add support for AF_XDP") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice.h | 6 +- drivers/net/ethernet/intel/ice/ice_base.c | 4 +- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- drivers/net/ethernet/intel/ice/ice_txrx.c | 4 +- d

[Intel-wired-lan] [PATCH v2 iwl-net 5/8] ice: toggle netif_carrier when setting up XSK pool

2024-05-29 Thread Maciej Fijalkowski
F_XDP") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_xsk.c index 3dcab89be256..8c5006f37310 100644 --- a/drivers/net/ethernet

[Intel-wired-lan] [PATCH v2 iwl-net 4/8] ice: modify error handling when setting XSK pool in ndo_bpf

2024-05-29 Thread Maciej Fijalkowski
Don't bail out right when spotting an error within ice_qp_{dis,ena}() but rather track error and go through whole flow of disabling and enabling queue pair. Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice

[Intel-wired-lan] [PATCH v2 iwl-net 3/8] ice: replace synchronize_rcu with synchronize_net

2024-05-29 Thread Maciej Fijalkowski
. Fixes: 2d4238f55697 ("ice: Add support for AF_XDP") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_x

[Intel-wired-lan] [PATCH v2 iwl-net 2/8] ice: don't busy wait for Rx queue disable in ice_qp_dis()

2024-05-29 Thread Maciej Fijalkowski
DP") Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_xsk.c index 1bd4b054dd80..4f606a1055b0 100644 --- a/driver

[Intel-wired-lan] [PATCH v2 iwl-net 1/8] ice: respect netif readiness in AF_XDP ZC related ndo's

2024-05-29 Thread Maciej Fijalkowski
AF_XDP") Signed-off-by: Michal Kubiak Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_xsk.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_xsk.c b/drivers/net/ethernet/intel/ice/ice_xsk.c index 2015f6

[Intel-wired-lan] [PATCH v2 iwl-net 0/8] ice: fix AF_XDP ZC timeout and concurrency issues

2024-05-29 Thread Maciej Fijalkowski
side. Main focus here is to forbid producing Tx descriptors when either carrier is not yet initialized or process of bringing interface down has already started. Thanks, Maciej v1->v2: - fix kdoc issues in patch 6 and 8 - drop Larysa's patches for now Maciej Fijalkowski (7): ice: do

  1   2   >