diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-03-08 08:57:07 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-09 16:39:58 -0800 |
commit | b9dcf88a47ebab2743a0c627a95126c4cb3e9883 (patch) | |
tree | 48a6c1321f15d9c42b4e3cad67955e72ed8fa426 /drivers/net/ethernet/netronome/nfp/nfp_net.h | |
parent | 7de5f115e1fd8a6df7aa89078cb70700e725173d (diff) | |
download | linux-stable-b9dcf88a47ebab2743a0c627a95126c4cb3e9883.tar.gz linux-stable-b9dcf88a47ebab2743a0c627a95126c4cb3e9883.tar.bz2 linux-stable-b9dcf88a47ebab2743a0c627a95126c4cb3e9883.zip |
nfp: add metadata format bit
We only need FW version in the first cache line of adapter struct
because we need to know the metadata format. To save space add a
metadata format bit.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_net.h')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net.h b/drivers/net/ethernet/netronome/nfp/nfp_net.h index 4ad27570b6c4..34f8c439f42f 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net.h +++ b/drivers/net/ethernet/netronome/nfp/nfp_net.h @@ -440,6 +440,7 @@ struct nfp_stat_pair { * @is_vf: Is the driver attached to a VF? * @bpf_offload_skip_sw: Offloaded BPF program will not be rerun by cls_bpf * @bpf_offload_xdp: Offloaded BPF program is XDP + * @chained_metadata_format: Firemware will use new metadata format * @ctrl: Local copy of the control register/word. * @fl_bufsz: Currently configured size of the freelist buffers * @rx_offset: Offset in the RX buffers where packet data starts @@ -507,6 +508,7 @@ struct nfp_net { unsigned is_vf:1; unsigned bpf_offload_skip_sw:1; unsigned bpf_offload_xdp:1; + unsigned chained_metadata_format:1; u32 ctrl; u32 fl_bufsz; |