diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2014-11-07 14:36:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-10 22:15:03 +0300 |
commit | 65f6ecc93e7cca888a96a68cf6b5292dff1982b6 (patch) | |
tree | 630b864799d5d547383b428ba1c7de70ce056396 /drivers/net/ethernet/chelsio/cxgb4vf/adapter.h | |
parent | 436c2a5036b6ffe813310df2cf327d3b69be0734 (diff) | |
download | linux-65f6ecc93e7cca888a96a68cf6b5292dff1982b6.tar.xz |
cxgb4vf: Move fl_starv_thres into adapter->sge data structure
Move fl_starv_thres into adapter->sge data structure since it
_could_ be different from adapter to adapter. Also move other per-adapter
SGE values which had been treated as driver globals into adapter->sge.
Based on original work by Casey Leedom <leedom@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf/adapter.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/adapter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/adapter.h b/drivers/net/ethernet/chelsio/cxgb4vf/adapter.h index 68eaa9c88c7d..3d06e77d7121 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/adapter.h +++ b/drivers/net/ethernet/chelsio/cxgb4vf/adapter.h @@ -299,6 +299,14 @@ struct sge { u16 timer_val[SGE_NTIMERS]; /* interrupt holdoff timer array */ u8 counter_val[SGE_NCOUNTERS]; /* interrupt RX threshold array */ + /* Decoded Adapter Parameters. + */ + u32 fl_pg_order; /* large page allocation size */ + u32 stat_len; /* length of status page at ring end */ + u32 pktshift; /* padding between CPL & packet data */ + u32 fl_align; /* response queue message alignment */ + u32 fl_starve_thres; /* Free List starvation threshold */ + /* * Reverse maps from Absolute Queue IDs to associated queue pointers. * The absolute Queue IDs are in a compact range which start at a |