Re: [Intel-wired-lan] [PATCH v2] overflow: Change DEFINE_FLEX to take __counted_by member

2024-03-06 Thread Przemek Kitszel
On 3/7/24 00:51, Kees Cook wrote: The norm should be flexible array structures with __counted_by annotations, so DEFINE_FLEX() is updated to expect that. Rename the non-annotated version to DEFINE_RAW_FLEX(), and update the few existing users. Signed-off-by: Kees Cook --- Cc: Przemek Kitszel C

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix bug with suspend and rebuild

2024-03-06 Thread Jesse Brandeburg
On 3/6/2024 5:33 PM, Jesse Brandeburg wrote: On 3/6/2024 8:56 AM, Maciej Fijalkowski wrote: Fixes: b3e7b3a6ee92 ("ice: prevent NULL pointer deref during reload") Reported-by: Robert Elliott Signed-off-by: Jesse Brandeburg Reviewed-by: Maciej Fijalkowski Well, that refactor of config path i

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix bug with suspend and rebuild

2024-03-06 Thread Jesse Brandeburg
On 3/6/2024 8:56 AM, Maciej Fijalkowski wrote: Fixes: b3e7b3a6ee92 ("ice: prevent NULL pointer deref during reload") Reported-by: Robert Elliott Signed-off-by: Jesse Brandeburg Reviewed-by: Maciej Fijalkowski Well, that refactor of config path introduced lots of issues. Could validation fol

Re: [Intel-wired-lan] [PATCH v2] overflow: Change DEFINE_FLEX to take __counted_by member

2024-03-06 Thread Gustavo A. R. Silva
On 3/6/24 17:51, Kees Cook wrote: The norm should be flexible array structures with __counted_by annotations, so DEFINE_FLEX() is updated to expect that. Rename the non-annotated version to DEFINE_RAW_FLEX(), and update the few existing users. Signed-off-by: Kees Cook LGTM: Reviewed-by: G

Re: [Intel-wired-lan] [PATCH] i40e: Prevent setting MTU if greater than MFS

2024-03-06 Thread Tony Nguyen
On 3/4/2024 6:22 PM, Erwan Velu wrote: I was also wondering if I shouldn't subtract I40E_PACKET_HDR_PAD from the mfs to be more accurate, can you confirm this ? Yes, you're correct, we should take the packet header out however... If one can have a look at what is the exact procedure to fix th

Re: [Intel-wired-lan] [PATCH] overflow: Change DEFINE_FLEX to take __counted_by member

2024-03-06 Thread Kees Cook
On Wed, Mar 06, 2024 at 08:06:29AM +0100, Przemek Kitszel wrote: > On 3/6/24 04:25, Gustavo A. R. Silva wrote: > > > > > > On 05/03/24 19:07, Kees Cook wrote: > > > The norm should be flexible array structures with __counted_by > > > annotations, so DEFINE_FLEX() is updated to expect that. Rename

[Intel-wired-lan] [PATCH v2] overflow: Change DEFINE_FLEX to take __counted_by member

2024-03-06 Thread Kees Cook
The norm should be flexible array structures with __counted_by annotations, so DEFINE_FLEX() is updated to expect that. Rename the non-annotated version to DEFINE_RAW_FLEX(), and update the few existing users. Signed-off-by: Kees Cook --- Cc: Przemek Kitszel Cc: Jesse Brandeburg Cc: Tony Nguyen

Re: [Intel-wired-lan] [PATCH] ice: Fix enabling SR-IOV with Xen

2024-03-06 Thread Tony Nguyen
On 3/1/2024 10:28 AM, javi.mer...@kernel.org wrote: From: Ross Lagerwall I'm unsure about the error path if `pci_enable_sriov()` fails. Do we have to undo what `ice_start_vfs()` has started? I can see that `ice_start_vfs()` has a teardown at the end, so maybe we need the same code if `pci_ena

Re: [Intel-wired-lan] [PATCH iwl-next v2 1/2] igb: simplify pci ops declaration

2024-03-06 Thread Bjorn Helgaas
On Wed, Mar 06, 2024 at 05:14:12PM -0600, Bjorn Helgaas wrote: > [+cc Paul for __maybe_unused cleanup] > > On Tue, Mar 05, 2024 at 06:50:21PM -0800, Jesse Brandeburg wrote: > > The igb driver was pre-declaring tons of functions just so that it could > > have an early declaration of the pci_driver

Re: [Intel-wired-lan] [PATCH iwl-next v2 1/2] igb: simplify pci ops declaration

2024-03-06 Thread Bjorn Helgaas
[+cc Paul for __maybe_unused cleanup] On Tue, Mar 05, 2024 at 06:50:21PM -0800, Jesse Brandeburg wrote: > The igb driver was pre-declaring tons of functions just so that it could > have an early declaration of the pci_driver struct. > > Delete a bunch of the declarations and move the struct to th

Re: [Intel-wired-lan] [PATCH iwl-net v2] ice: fix memory corruption bug with suspend and rebuild

2024-03-06 Thread Loktionov, Aleksandr
> -Original Message- > From: Intel-wired-lan On > Behalf Of Simon Horman > Sent: Wednesday, March 6, 2024 9:04 PM > To: Brandeburg, Jesse > Cc: pmen...@molgen.mpg.de; Michal Swiatkowski > ; net...@vger.kernel.org; > Kitszel, Przemyslaw ; Eric Dumazet > ; Nguyen, Anthony L > ; Jakub Kic

Re: [Intel-wired-lan] [PATCH iwl-net v2] ice: fix memory corruption bug with suspend and rebuild

2024-03-06 Thread Simon Horman
On Tue, Mar 05, 2024 at 03:02:03PM -0800, Jesse Brandeburg wrote: > The ice driver would previously panic after suspend. This is caused > from the driver *only* calling the ice_vsi_free_q_vectors() function by > itself, when it is suspending. Since commit b3e7b3a6ee92 ("ice: prevent > NULL pointer

Re: [Intel-wired-lan] [PATCH net-next v2 1/3] ice: add ice_adapter for shared data across PFs on the same NIC

2024-03-06 Thread Michal Schmidt
On Wed, Mar 6, 2024 at 6:00 PM Jiri Pirko wrote: > Wed, Mar 06, 2024 at 05:29:05PM CET, mschm...@redhat.com wrote: > >There is a need for synchronization between ice PFs on the same physical > >adapter. > > > >Add a "struct ice_adapter" for holding data shared between PFs of the > >same multifunct

Re: [Intel-wired-lan] [PATCH iwl-next, v3 2/2] igc: Add Tx hardware timestamp request for AF_XDP zero-copy packet

2024-03-06 Thread Maciej Fijalkowski
On Sun, Mar 03, 2024 at 04:32:25PM +0800, Song Yoong Siang wrote: > This patch adds support to per-packet Tx hardware timestamp request to > AF_XDP zero-copy packet via XDP Tx metadata framework. Please note that > user needs to enable Tx HW timestamp capability via igc_ioctl() with > SIOCSHWTSTAMP

Re: [Intel-wired-lan] [PATCH net-next v2 1/3] ice: add ice_adapter for shared data across PFs on the same NIC

2024-03-06 Thread Jiri Pirko
Wed, Mar 06, 2024 at 05:29:05PM CET, mschm...@redhat.com wrote: >There is a need for synchronization between ice PFs on the same physical >adapter. > >Add a "struct ice_adapter" for holding data shared between PFs of the >same multifunction PCI device. The struct is refcounted - each ice_pf >holds

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix bug with suspend and rebuild

2024-03-06 Thread Maciej Fijalkowski
On Wed, Mar 06, 2024 at 05:46:02PM +0100, Maciej Fijalkowski wrote: > On Mon, Mar 04, 2024 at 03:08:44PM -0800, Jesse Brandeburg wrote: > > The ice driver would previously panic during suspend. This is caused > > from the driver *only* calling the ice_vsi_free_q_vectors() function by > > itself, wh

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix bug with suspend and rebuild

2024-03-06 Thread Maciej Fijalkowski
On Mon, Mar 04, 2024 at 03:08:44PM -0800, Jesse Brandeburg wrote: > The ice driver would previously panic during suspend. This is caused > from the driver *only* calling the ice_vsi_free_q_vectors() function by > itself, when it is suspending. Since commit b3e7b3a6ee92 ("ice: prevent > NULL pointer

[Intel-wired-lan] [PATCH iwl-next] i40e: avoid forward declarations in i40e_nvm.c

2024-03-06 Thread Maciej Fijalkowski
Move code around to get rid of forward declarations. No functional changes. After a plain code juggling, checkpatch reported: total: 0 errors, 7 warnings, 12 checks, 1581 lines checked so while at it let's address old issues as well. Should we ever address the remaining unnecessary forward declar

[Intel-wired-lan] [PATCH net-next v2 3/3] ice: fold ice_ptp_read_time into ice_ptp_gettimex64

2024-03-06 Thread Michal Schmidt
This is a cleanup. It is unnecessary to have this function just to call another function. Signed-off-by: Michal Schmidt --- drivers/net/ethernet/intel/ice/ice_ptp.c | 25 +++- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_pt

[Intel-wired-lan] [PATCH net-next v2 2/3] ice: avoid the PTP hardware semaphore in gettimex64 path

2024-03-06 Thread Michal Schmidt
The PTP hardware semaphore (PFTSYN_SEM) is used to synchronize operations that program the PTP timers. The operations involve issuing commands to the sideband queue. The E810 does not have a hardware sideband queue, so the admin queue is used. The admin queue is slow. I have observed delays in hund

[Intel-wired-lan] [PATCH net-next v2 1/3] ice: add ice_adapter for shared data across PFs on the same NIC

2024-03-06 Thread Michal Schmidt
There is a need for synchronization between ice PFs on the same physical adapter. Add a "struct ice_adapter" for holding data shared between PFs of the same multifunction PCI device. The struct is refcounted - each ice_pf holds a reference to it. Its first use will be for PTP. I expect it will be

[Intel-wired-lan] [PATCH net-next v2 0/3] ice: lighter locking for PTP time reading

2024-03-06 Thread Michal Schmidt
This series removes the use of the heavy-weight PTP hardware semaphore in the gettimex64 path. Instead, serialization of access to the time register is done using a host-side spinlock. The timer hardware is shared between PFs on the PCI adapter, so the spinlock must be shared between ice_pf instanc

Re: [Intel-wired-lan] [PATCH iwl-next] ice: Add switch recipe reusing feature

2024-03-06 Thread Sharma, Mayank
> -Original Message- > From: Intel-wired-lan On Behalf Of Steven > Zou > Sent: Thursday, February 8, 2024 8:49 AM > To: intel-wired-...@lists.osuosl.org > Cc: net...@vger.kernel.org; Zou, Steven ; Staikov, > Andrii > ; Lobakin, Aleksander > ; Nguyen, Anthony L > ; Simon Horman ; Kitszel,

[Intel-wired-lan] [tnguy-net-queue:100GbE] BUILD SUCCESS ba54b1a276a6b69d80649942fe5334d19851443e

2024-03-06 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240306 gcc arc randconfig-002-20240306 gcc arm

Re: [Intel-wired-lan] [PATCH iwl-next] ice: Add switch recipe reusing feature

2024-03-06 Thread Jakub Kicinski
On Wed, 6 Mar 2024 22:55:48 +0800 Zou, Steven wrote: > > We are seeing following kernel compilation error while compiling next > > kernel: > > > > "error: dereferencing pointer to incomplete type 'struct dpll_pin'" > > Thanks Mayank! > The patch does not touch 'stuct dpll_pin', I do not think t

Re: [Intel-wired-lan] [PATCH iwl-next] ice: Add switch recipe reusing feature

2024-03-06 Thread Zou, Steven
On 3/6/2024 9:48 PM, Sharma, Mayank wrote: -Original Message- From: Intel-wired-lan On Behalf Of Steven Zou Sent: Thursday, February 8, 2024 8:49 AM To: intel-wired-...@lists.osuosl.org Cc: net...@vger.kernel.org; Zou, Steven ; Staikov, Andrii ; Lobakin, Aleksander ; Nguyen, Anthony L

Re: [Intel-wired-lan] [PATCH iwl-net 0/5] ice: LLDP support for VFs

2024-03-06 Thread Larysa Zaremba
On Tue, Mar 05, 2024 at 11:54:50AM -0800, Jakub Kicinski wrote: > On Sat, 2 Mar 2024 01:50:03 +0100 Larysa Zaremba wrote: > > For RX: match on Ethertype and mirror, every trusted VF should be able to > > scan > > neighbors. > > > > For TX this is more complicated and is done not through eswitch,

Re: [Intel-wired-lan] [PATCH iwl-next v2 2/2] net: intel: implement modern PM ops declarations

2024-03-06 Thread Maciej Fijalkowski
On Tue, Mar 05, 2024 at 06:50:22PM -0800, Jesse Brandeburg wrote: > Switch the Intel networking drivers to use the new power management ops > declaration formats and macros, which allows us to drop __maybe_unused, > as well as a bunch of ifdef checking CONFIG_PM. > > This is safe to do because the

Re: [Intel-wired-lan] [PATCH iwl-next v2 1/2] igb: simplify pci ops declaration

2024-03-06 Thread Maciej Fijalkowski
On Tue, Mar 05, 2024 at 06:50:21PM -0800, Jesse Brandeburg wrote: > The igb driver was pre-declaring tons of functions just so that it could > have an early declaration of the pci_driver struct. > > Delete a bunch of the declarations and move the struct to the bottom of the > file, after all the f

[Intel-wired-lan] [tnguy-next-queue:10GbE] BUILD SUCCESS 00af2aa93b76b1bade471ad0d0525d4d29ca5cc0

2024-03-06 Thread kernel test robot
gcc arc allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240306 gcc arc randconfig-002-20240306 gcc arm

[Intel-wired-lan] [tnguy-net-queue:200GbE] BUILD SUCCESS 4daa873133d3db4e17f4ccd9fe1102e4fbab7700

2024-03-06 Thread kernel test robot
gcc arc allmodconfig gcc arc allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240305 gcc arc randconfig-00

Re: [Intel-wired-lan] [PATCH net] i40e: Fix firmware version comparison function

2024-03-06 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of Ivan > Vecera > Sent: Wednesday, February 28, 2024 10:56 PM > To: net...@vger.kernel.org > Cc: moderated list:INTEL ETHERNET DRIVERS ; > Brandeburg, Jesse ; open list > ; Eric Dumazet ; Nguyen, > Anthony L ; Jakub Kicinski ; >

Re: [Intel-wired-lan] [PATCH iwl-net] ice: fix stats being updated by way too large values

2024-03-06 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Przemek Kitszel > Sent: Tuesday, February 27, 2024 8:01 PM > To: intel-wired-...@lists.osuosl.org > Cc: Nebojsa Stevanovic ; > net...@vger.kernel.org; Czapnik, Lukasz ; Lobakin, > Aleksander ; Nguyen, Anthony L > ; Kitszel, Pr

Re: [Intel-wired-lan] [PATCH iwl-next v6 6/6] ice: Document tx_scheduling_layers parameter

2024-03-06 Thread Jiri Pirko
Tue, Mar 05, 2024 at 03:39:42PM CET, mateusz.polchlo...@intel.com wrote: >From: Michal Wilczynski > >New driver specific parameter 'tx_scheduling_layers' was introduced. >Describe parameter in the documentation. > >Signed-off-by: Michal Wilczynski >Acked-by: Jakub Kicinski >Co-developed-by: Mate

Re: [Intel-wired-lan] [PATCH iwl-next v6 5/6] ice: Add tx_scheduling_layers devlink param

2024-03-06 Thread Jiri Pirko
Tue, Mar 05, 2024 at 03:39:41PM CET, mateusz.polchlo...@intel.com wrote: >From: Lukasz Czapnik > >It was observed that Tx performance was inconsistent across all queues >and/or VSIs and that it was directly connected to existing 9-layer >topology of the Tx scheduler. > >Introduce new private devli

Re: [Intel-wired-lan] [iwl-net v2 1/2] igc: Fix missing time sync events

2024-03-06 Thread naamax.meir
On 2/21/2024 01:57, Vinicius Costa Gomes wrote: Fix "double" clearing of interrupts, which can cause external events or timestamps to be missed. The IGC_TSIRC Time Sync Interrupt Cause register can be cleared in two ways, by either reading it or by writing '1' into the specific cause bit. This i

Re: [Intel-wired-lan] [PATCH v5] ice: Add get/set hw address for VFs using devlink commands

2024-03-06 Thread Wojciech Drewek
On 05.03.2024 16:26, Karthik Sundaravel wrote: > Changing the MAC address of the VFs are not available > via devlink. Add the function handlers to set and get > the HW address for the VFs. > > Signed-off-by: Karthik Sundaravel > --- > drivers/net/ethernet/intel/ice/ice_devlink.c | 78

Re: [Intel-wired-lan] [PATCH iwl-next v6 1/6] devlink: extend devlink_param *set pointer

2024-03-06 Thread Jiri Pirko
Tue, Mar 05, 2024 at 03:39:37PM CET, mateusz.polchlo...@intel.com wrote: >Extend devlink_param *set function pointer to take extack as a param. >Sometimes it is needed to pass information to the end user from set >function. It is more proper to use for that netlink instead of passing >message to dm