summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2023-02-08 14:56:49 -0600
committerDavid S. Miller <davem@davemloft.net>2023-02-10 08:06:32 +0000
commitc5ebba75c7625e5cb62cb5423883cc3764779420 (patch)
treea97f102c3c6898645f94e06a3d65eca9c98296e4 /drivers/net/ethernet/intel/ice/ice_lib.c
parentd86603e940ae5107a1669952070027726054142f (diff)
net: ipa: use bitmasks for GSI IRQ values
There are seven GSI interrupt types that can be signaled by a single GSI IRQ. These are represented in a bitmask, and the gsi_irq_type_id enumerated type defines what each bit position represents. Similarly, the global and general GSI interrupt types each has a set of conditions it signals, and both types have an enumerated type that defines which bit that represents each condition. When used, these enumerated values are passed as an argument to BIT() in *all* cases. So clean up the code a little bit by defining the enumerated type values as one-bit masks rather than bit positions. Rename gsi_general_id to be gsi_general_irq_id for consistency. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions