Michal Swiatkowski
503ab6ee40
ice: use internal pf id instead of function number
...
Use always the same pf id in devlink port number. When doing
pass-through the PF to VM bus info func number can be any value.
Fixes: 2ae0aa4758 ("ice: Move devlink port to PF/VF struct")
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com >
Suggested-by: Jiri Pirko <jiri@resnulli.us >
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com >
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2024-08-20 13:23:01 -07:00
Karthik Sundaravel
4dbb4f9b8f
ice: Add get/set hw address for VFs using devlink commands
...
Changing the MAC address of the VFs is currently unsupported via devlink.
Add the function handlers to set and get the HW address for the VFs.
Signed-off-by: Karthik Sundaravel <ksundara@redhat.com >
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com >
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2024-06-28 10:23:10 -07:00
Michal Swiatkowski
8d2f518c0c
ice: move devlink locking outside the port creation
...
In case of subfunction lock will be taken for whole port creation and
removing. Do the same in VF case.
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com >
Reviewed-by: Simon Horman <horms@kernel.org >
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com >
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2024-06-21 07:45:38 -07:00
Piotr Raczynski
4ebc5f25d0
ice: move devlink port code to a separate file
...
Keep devlink related code in a separate file. More devlink port code and
handlers will be added here for other port operations.
Remove no longer needed include of our devlink.h in ice_lib.c.
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com >
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com >
Signed-off-by: Piotr Raczynski <piotr.raczynski@intel.com >
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com >
Reviewed-by: Simon Horman <horms@kernel.org >
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com > (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2024-04-01 09:06:28 -07:00