commit | 97717aca618a85d9e52327b4509a3b95c2f8f121 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Fri Mar 10 10:38:36 2017 -0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Mar 12 23:43:19 2017 -0700 |
tree | 739bb23f5e9701331d9a401741ddca667b5969c9 | |
parent | c487e6b199eab3af14e54406d97cc3c149e591e1 [diff] |
nfp: validate rx offset from the BAR and size down it's field NFP_NET_CFG_RX_OFFSET is 32bit wide, make sure what we read from there is reasonable for packet headroom. This allows us to store the rx_offset in a 8bit variable. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>