Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_txrx.c
Show All 37 Lines | |||||
** both the BASE and the VF drivers. | ** both the BASE and the VF drivers. | ||||
*/ | */ | ||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include "opt_rss.h" | #include "opt_rss.h" | ||||
#include "ixl.h" | #include "ixl.h" | ||||
#ifdef RSS | |||||
#include <net/rss_config.h> | |||||
#endif /* RSS */ | |||||
/* Local Prototypes */ | /* Local Prototypes */ | ||||
static void ixl_rx_checksum(struct mbuf *, u32, u32, u8); | static void ixl_rx_checksum(struct mbuf *, u32, u32, u8); | ||||
static void ixl_refresh_mbufs(struct ixl_queue *, int); | static void ixl_refresh_mbufs(struct ixl_queue *, int); | ||||
static int ixl_xmit(struct ixl_queue *, struct mbuf **); | static int ixl_xmit(struct ixl_queue *, struct mbuf **); | ||||
static int ixl_tx_setup_offload(struct ixl_queue *, | static int ixl_tx_setup_offload(struct ixl_queue *, | ||||
struct mbuf *, u32 *, u32 *); | struct mbuf *, u32 *, u32 *); | ||||
static bool ixl_tso_setup(struct ixl_queue *, struct mbuf *); | static bool ixl_tso_setup(struct ixl_queue *, struct mbuf *); | ||||
▲ Show 20 Lines • Show All 1,315 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
** i40e_ptype_to_hash: parse the packet type | ** i40e_ptype_to_hash: parse the packet type | ||||
** to determine the appropriate hash. | ** to determine the appropriate hash. | ||||
*/ | */ | ||||
static inline int | static inline int | ||||
ixl_ptype_to_hash(u8 ptype) | ixl_ptype_to_hash(u8 ptype) | ||||
{ | { | ||||
struct i40e_rx_ptype_decoded decoded; | struct i40e_rx_ptype_decoded decoded; | ||||
u8 ex = 0 | u8 ex = 0; | ||||
decode = decode_rx_desc_ptype(ptype); | decoded = decode_rx_desc_ptype(ptype); | ||||
ex = decoded.outer_frag; | ex = decoded.outer_frag; | ||||
if (!decoded.known) | if (!decoded.known) | ||||
return M_HASHTYPE_OPAQUE; | return M_HASHTYPE_OPAQUE; | ||||
if (decoded.outer_ip == I40E_RX_PTYPE_OUTER_L2) | if (decoded.outer_ip == I40E_RX_PTYPE_OUTER_L2) | ||||
return M_HASHTYPE_OPAQUE; | return M_HASHTYPE_OPAQUE; | ||||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |