Re: [Intel-wired-lan] [PATCH 2/2] igbvf: remove unused spinlock

2024-09-21 Thread Paul Menzel
Dear Wander, Thank you for your patch. Am 20.09.24 um 20:59 schrieb Wander Lairson Costa: tx_queue_lock and stats_lock are declared and initialized, but never used. Remove them. Signed-off-by: Wander Lairson Costa It’d be great if you added a Fixes: tag. --- drivers/net/ethernet/intel/

[Intel-wired-lan] [RFC bpf-next 1/4] net: xdp: Add xdp_rx_meta structure

2024-09-21 Thread Lorenzo Bianconi
Introduce xdp_rx_meta structure as a container to store the already supported xdp rx hints (rx_hash and rx_vlan) in the xdp_buff and xdp_frame structures (the rx_timestamp will be added to the skb_shared_info area). Rely on the xdp_buff/xdp_frame flag field to indicate what kind of rx hints have be

[Intel-wired-lan] [RFC bpf-next 4/4] net: xdp: Update rx timestamp of xdp_rx_meta struct running xmo_rx_timestamp callback

2024-09-21 Thread Lorenzo Bianconi
Set rx_timestamp in xdp_rx_meta struct of xdp_buff/xdp_frame according to the value reported by the hw. Update the xmo_rx_timestamp callback of xdp_metadata_ops for the following drivers: - ice - igc - mlx5 - mlx4 - stmmac - veth Set rx_timestamp reported by the hw converting the xdp_frame into a s

[Intel-wired-lan] [RFC bpf-next 2/4] net: xdp: Update rx_hash of xdp_rx_meta struct running xmo_rx_hash callback

2024-09-21 Thread Lorenzo Bianconi
Set rx_hash in xdp_rx_meta struct of xdp_buff/xdp_frame according to the value reported by the hw. Update the xmo_rx_hash callback of xdp_metadata_ops for the following drivers: - ice - igc - mlx4 - mlx5 - veth - virtio_net Set rx_hash value/type reported by the hw converting the xdp_frame into a s

[Intel-wired-lan] [RFC bpf-next 3/4] net: xdp: Update rx_vlan of xdp_rx_meta struct running xmo_rx_vlan_tag callback

2024-09-21 Thread Lorenzo Bianconi
Set vlan_proto and vlan_tci in xdp_rx_meta struct of xdp_buff/xdp_frame according to the value reported by the hw. Update the xmo_rx_vlan_tag callback of xdp_metadata_ops for the following drivers: - ice - mlx5 - veth Set rx vlan_{prot, tci} reported by the hw converting the xdp_frame into a sk_buf

[Intel-wired-lan] [RFC bpf-next 0/4] Add XDP rx hw hints support performing XDP_REDIRECT

2024-09-21 Thread Lorenzo Bianconi
This series introduces the xdp_rx_meta struct in the xdp_buff/xdp_frame one as a container to store the already supported xdp rx hw hints (rx_hash and rx_vlan, rx_timestamp will be stored in skb_shared_info area) when the eBPF program running on the nic performs XDP_REDIRECT. Doing so, we are able

Re: [Intel-wired-lan] [RFC bpf-next 0/4] Add XDP rx hw hints support performing XDP_REDIRECT

2024-09-21 Thread Alexander Lobakin
From: Lorenzo Bianconi Date: Sat, 21 Sep 2024 18:52:56 +0200 > This series introduces the xdp_rx_meta struct in the xdp_buff/xdp_frame &xdp_buff is on the stack. &xdp_frame consumes headroom. IOW they're size-sensitive and putting metadata directly there might play bad; if not now, then later.

Re: [Intel-wired-lan] [RFC bpf-next 0/4] Add XDP rx hw hints support performing XDP_REDIRECT

2024-09-21 Thread Jesper Dangaard Brouer
On 21/09/2024 22.17, Alexander Lobakin wrote: From: Lorenzo Bianconi Date: Sat, 21 Sep 2024 18:52:56 +0200 This series introduces the xdp_rx_meta struct in the xdp_buff/xdp_frame &xdp_buff is on the stack. &xdp_frame consumes headroom. IOW they're size-sensitive and putting metadata dire