diff options
author | Mintz, Yuval <Yuval.Mintz@cavium.com> | 2017-06-01 15:29:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-01 12:17:18 -0400 |
commit | 726fdbe9fa7ebccda1579716f68f8bae6fa9c87a (patch) | |
tree | ed7d684d6ce37526f38c69031d3ea756a770a5a5 /drivers/net/ethernet/qlogic/qed/qed_int.h | |
parent | a333f7f3fd327d736a23c52aafcfe17c75f2610c (diff) | |
download | talos-obmc-linux-726fdbe9fa7ebccda1579716f68f8bae6fa9c87a.tar.gz talos-obmc-linux-726fdbe9fa7ebccda1579716f68f8bae6fa9c87a.zip |
qed: Encapsulate interrupt counters in struct
We already have an API struct that contains interrupt-related
numbers. Use it to encapsulate all information relating to the
status of SBs as (used|free).
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_int.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_int.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_int.h b/drivers/net/ethernet/qlogic/qed/qed_int.h index 60aaf9f9bb78..5a0e8f02c969 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_int.h +++ b/drivers/net/ethernet/qlogic/qed/qed_int.h @@ -216,11 +216,11 @@ struct qed_igu_block { struct qed_igu_info { struct qed_igu_block entry[MAX_TOT_SB_PER_PATH]; u16 igu_dsb_id; - u16 igu_base_sb; - u16 igu_base_sb_iov; - u16 igu_sb_cnt; - u16 igu_sb_cnt_iov; - u16 free_blks; + + u16 igu_base_sb; + u16 igu_base_sb_iov; + struct qed_sb_cnt_info usage; + }; /* TODO Names of function may change... */ |