mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
net: libwx: rename wx_pf_flags to wx_flags
The flags defined in `enum wx_pf_flags` and its terminator `WX_PF_FLAGS_NBITS` were originally named with a "PF" (Physical Function) prefix. However, these flags are not exclusive to PFs and are also utilized by Virtual Functions (VFs). Rename the enumeration to `enum wx_flags` and the bit count to `WX_FLAGS_NBITS` to accurately reflect their shared usage across both PF and VF drivers, and to prevent potential confusion. Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com> Reviewed-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/9479B0506F544556+20260901065659.41273-1-jiawenwu@trustnetic.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
b35d3d2fae
commit
7042c8c193
|
|
@ -2520,7 +2520,7 @@ int wx_sw_init(struct wx *wx)
|
||||||
spin_lock_init(&wx->hw_stats_lock);
|
spin_lock_init(&wx->hw_stats_lock);
|
||||||
mutex_init(&wx->reset_lock);
|
mutex_init(&wx->reset_lock);
|
||||||
bitmap_zero(wx->state, WX_STATE_NBITS);
|
bitmap_zero(wx->state, WX_STATE_NBITS);
|
||||||
bitmap_zero(wx->flags, WX_PF_FLAGS_NBITS);
|
bitmap_zero(wx->flags, WX_FLAGS_NBITS);
|
||||||
set_bit(WX_STATE_DOWN, wx->state);
|
set_bit(WX_STATE_DOWN, wx->state);
|
||||||
wx->misc_irq_domain = false;
|
wx->misc_irq_domain = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1269,7 +1269,7 @@ struct wx_rss_flow_map {
|
||||||
u8 flag;
|
u8 flag;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum wx_pf_flags {
|
enum wx_flags {
|
||||||
WX_FLAG_MULTI_64_FUNC,
|
WX_FLAG_MULTI_64_FUNC,
|
||||||
WX_FLAG_SWFW_RING,
|
WX_FLAG_SWFW_RING,
|
||||||
WX_FLAG_VMDQ_ENABLED,
|
WX_FLAG_VMDQ_ENABLED,
|
||||||
|
|
@ -1291,13 +1291,13 @@ enum wx_pf_flags {
|
||||||
WX_FLAG_RX_MERGE_ENABLED,
|
WX_FLAG_RX_MERGE_ENABLED,
|
||||||
WX_FLAG_TXHEAD_WB_ENABLED,
|
WX_FLAG_TXHEAD_WB_ENABLED,
|
||||||
WX_FLAG_NEED_PCIE_RECOVERY,
|
WX_FLAG_NEED_PCIE_RECOVERY,
|
||||||
WX_PF_FLAGS_NBITS /* must be last */
|
WX_FLAGS_NBITS /* must be last */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wx {
|
struct wx {
|
||||||
unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
|
||||||
DECLARE_BITMAP(state, WX_STATE_NBITS);
|
DECLARE_BITMAP(state, WX_STATE_NBITS);
|
||||||
DECLARE_BITMAP(flags, WX_PF_FLAGS_NBITS);
|
DECLARE_BITMAP(flags, WX_FLAGS_NBITS);
|
||||||
|
|
||||||
void *priv;
|
void *priv;
|
||||||
u8 __iomem *hw_addr;
|
u8 __iomem *hw_addr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user