mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
MFC: r282899
sfxge: add local variable with Rx descriptor flags Sponsored by: Solarflare Communications, Inc.
This commit is contained in:
parent
8c90b9ff10
commit
a7963898d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=283203
@ -322,16 +322,17 @@ static void
|
||||
sfxge_rx_deliver(struct sfxge_softc *sc, struct sfxge_rx_sw_desc *rx_desc)
|
||||
{
|
||||
struct mbuf *m = rx_desc->mbuf;
|
||||
int flags = rx_desc->flags;
|
||||
int csum_flags;
|
||||
|
||||
/* Convert checksum flags */
|
||||
csum_flags = (rx_desc->flags & EFX_CKSUM_IPV4) ?
|
||||
csum_flags = (flags & EFX_CKSUM_IPV4) ?
|
||||
(CSUM_IP_CHECKED | CSUM_IP_VALID) : 0;
|
||||
if (rx_desc->flags & EFX_CKSUM_TCPUDP)
|
||||
if (flags & EFX_CKSUM_TCPUDP)
|
||||
csum_flags |= CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
|
||||
|
||||
/* The hash covers a 4-tuple for TCP only */
|
||||
if (rx_desc->flags & EFX_PKT_TCP) {
|
||||
if (flags & EFX_PKT_TCP) {
|
||||
m->m_pkthdr.flowid = EFX_RX_HASH_VALUE(EFX_RX_HASHALG_TOEPLITZ,
|
||||
mtod(m, uint8_t *));
|
||||
M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE);
|
||||
|
Loading…
Reference in New Issue
Block a user