nfp: use struct fields for 8 bit-wide access
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Fri, 20 Oct 2017 17:49:52 +0000 (19:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 02:09:32 +0000 (03:09 +0100)
commit62d3f60b4d065c09a3ccb9e862e71ae870c2d27b
tree158ed57202d29ae5bd195c1bd8d7e05e81fd0ff7
parent0cea8e28df721f929ee3e1fa32489c012100f5a1
nfp: use struct fields for 8 bit-wide access

Use direct access struct fields rather than PREP_FIELD()
macros to manipulate the jump ID and length, both of which
are exactly 8-bits wide. This simplifies the code somewhat.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/action.c
drivers/net/ethernet/netronome/nfp/flower/cmsg.h