sfc: Replace efx_rx_is_last_buffer() with a flag
This condition is brittle and we have lots of flags to spare. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
2768935a46
commit
179ea7f039
2 changed files with 7 additions and 11 deletions
|
@ -228,6 +228,7 @@ struct efx_rx_buffer {
|
|||
u16 len;
|
||||
u16 flags;
|
||||
};
|
||||
#define EFX_RX_BUF_LAST_IN_PAGE 0x0001
|
||||
#define EFX_RX_PKT_CSUMMED 0x0002
|
||||
#define EFX_RX_PKT_DISCARD 0x0004
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue