Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ena/ena.c
Show First 20 Lines • Show All 1,394 Lines • ▼ Show 20 Lines | ena_rx_hash_mbuf(struct ena_ring *rx_ring, struct ena_com_rx_ctx *ena_rx_ctx, | ||||
struct mbuf *mbuf) | struct mbuf *mbuf) | ||||
{ | { | ||||
struct ena_adapter *adapter = rx_ring->adapter; | struct ena_adapter *adapter = rx_ring->adapter; | ||||
if (likely(adapter->rss_support)) { | if (likely(adapter->rss_support)) { | ||||
mbuf->m_pkthdr.flowid = ena_rx_ctx->hash; | mbuf->m_pkthdr.flowid = ena_rx_ctx->hash; | ||||
if (ena_rx_ctx->frag && | if (ena_rx_ctx->frag && | ||||
(ena_rx_ctx->l3_proto != ENA_ETH_IO_L4_PROTO_UNKNOWN)) { | (ena_rx_ctx->l3_proto != ENA_ETH_IO_L3_PROTO_UNKNOWN)) { | ||||
M_HASHTYPE_SET(mbuf, M_HASHTYPE_OPAQUE_HASH); | M_HASHTYPE_SET(mbuf, M_HASHTYPE_OPAQUE_HASH); | ||||
return; | return; | ||||
} | } | ||||
switch (ena_rx_ctx->l3_proto) { | switch (ena_rx_ctx->l3_proto) { | ||||
case ENA_ETH_IO_L3_PROTO_IPV4: | case ENA_ETH_IO_L3_PROTO_IPV4: | ||||
switch (ena_rx_ctx->l4_proto) { | switch (ena_rx_ctx->l4_proto) { | ||||
case ENA_ETH_IO_L4_PROTO_TCP: | case ENA_ETH_IO_L4_PROTO_TCP: | ||||
▲ Show 20 Lines • Show All 2,511 Lines • Show Last 20 Lines |