mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
ice: Refactor ice_aqc_link_topo_addr
Separate link topo parameters in struct ice_aqc_link_topo_addr into new struct ice_aqc_link_topo_params. This keeps input parameters for the get_link_topo command in a separate structure and is required by future commands that operate only on link topo params without the node handle. Signed-off-by: Maciej Machnikowski <maciej.machnikowski@intel.com> Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
9974cb5c87
commit
e00ae1a2aa
@@ -1279,7 +1279,7 @@ struct ice_aqc_set_mac_lb {
|
||||
u8 reserved[15];
|
||||
};
|
||||
|
||||
struct ice_aqc_link_topo_addr {
|
||||
struct ice_aqc_link_topo_params {
|
||||
u8 lport_num;
|
||||
u8 lport_num_valid;
|
||||
#define ICE_AQC_LINK_TOPO_PORT_NUM_VALID BIT(0)
|
||||
@@ -1305,6 +1305,10 @@ struct ice_aqc_link_topo_addr {
|
||||
#define ICE_AQC_LINK_TOPO_NODE_CTX_PROVIDED 4
|
||||
#define ICE_AQC_LINK_TOPO_NODE_CTX_OVERRIDE 5
|
||||
u8 index;
|
||||
};
|
||||
|
||||
struct ice_aqc_link_topo_addr {
|
||||
struct ice_aqc_link_topo_params topo_params;
|
||||
__le16 handle;
|
||||
#define ICE_AQC_LINK_TOPO_HANDLE_S 0
|
||||
#define ICE_AQC_LINK_TOPO_HANDLE_M (0x3FF << ICE_AQC_LINK_TOPO_HANDLE_S)
|
||||
|
||||
Reference in New Issue
Block a user