net/sfc/base: add outer IP ID parameter to TSOv2 descriptor
Set outer_ip_id in the TX option descriptor for encapsulated packets. Signed-off-by: Vijay Srivastava <vijays@solarflare.com> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
parent
f16e00c6dc
commit
912e603706
@ -756,6 +756,7 @@ extern void
|
||||
ef10_tx_qdesc_tso2_create(
|
||||
__in efx_txq_t *etp,
|
||||
__in uint16_t ipv4_id,
|
||||
__in uint16_t outer_ipv4_id,
|
||||
__in uint32_t tcp_seq,
|
||||
__in uint16_t tcp_mss,
|
||||
__out_ecount(count) efx_desc_t *edp,
|
||||
|
@ -623,6 +623,7 @@ ef10_tx_qdesc_tso_create(
|
||||
ef10_tx_qdesc_tso2_create(
|
||||
__in efx_txq_t *etp,
|
||||
__in uint16_t ipv4_id,
|
||||
__in uint16_t outer_ipv4_id,
|
||||
__in uint32_t tcp_seq,
|
||||
__in uint16_t tcp_mss,
|
||||
__out_ecount(count) efx_desc_t *edp,
|
||||
@ -636,13 +637,14 @@ ef10_tx_qdesc_tso2_create(
|
||||
|
||||
EFSYS_ASSERT(count >= EFX_TX_FATSOV2_OPT_NDESCS);
|
||||
|
||||
EFX_POPULATE_QWORD_5(edp[0].ed_eq,
|
||||
EFX_POPULATE_QWORD_6(edp[0].ed_eq,
|
||||
ESF_DZ_TX_DESC_IS_OPT, 1,
|
||||
ESF_DZ_TX_OPTION_TYPE,
|
||||
ESE_DZ_TX_OPTION_DESC_TSO,
|
||||
ESF_DZ_TX_TSO_OPTION_TYPE,
|
||||
ESE_DZ_TX_TSO_OPTION_DESC_FATSO2A,
|
||||
ESF_DZ_TX_TSO_IP_ID, ipv4_id,
|
||||
ESF_DZ_TX_TSO_OUTER_IPID, outer_ipv4_id,
|
||||
ESF_DZ_TX_TSO_TCP_SEQNO, tcp_seq);
|
||||
EFX_POPULATE_QWORD_4(edp[1].ed_eq,
|
||||
ESF_DZ_TX_DESC_IS_OPT, 1,
|
||||
|
@ -2295,6 +2295,7 @@ extern void
|
||||
efx_tx_qdesc_tso2_create(
|
||||
__in efx_txq_t *etp,
|
||||
__in uint16_t ipv4_id,
|
||||
__in uint16_t outer_ipv4_id,
|
||||
__in uint32_t tcp_seq,
|
||||
__in uint16_t tcp_mss,
|
||||
__out_ecount(count) efx_desc_t *edp,
|
||||
|
@ -117,7 +117,7 @@ typedef struct efx_tx_ops_s {
|
||||
uint32_t, uint8_t,
|
||||
efx_desc_t *);
|
||||
void (*etxo_qdesc_tso2_create)(efx_txq_t *, uint16_t,
|
||||
uint32_t, uint16_t,
|
||||
uint16_t, uint32_t, uint16_t,
|
||||
efx_desc_t *, int);
|
||||
void (*etxo_qdesc_vlantci_create)(efx_txq_t *, uint16_t,
|
||||
efx_desc_t *);
|
||||
|
@ -625,6 +625,7 @@ efx_tx_qdesc_tso_create(
|
||||
efx_tx_qdesc_tso2_create(
|
||||
__in efx_txq_t *etp,
|
||||
__in uint16_t ipv4_id,
|
||||
__in uint16_t outer_ipv4_id,
|
||||
__in uint32_t tcp_seq,
|
||||
__in uint16_t mss,
|
||||
__out_ecount(count) efx_desc_t *edp,
|
||||
@ -636,7 +637,8 @@ efx_tx_qdesc_tso2_create(
|
||||
EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
|
||||
EFSYS_ASSERT(etxop->etxo_qdesc_tso2_create != NULL);
|
||||
|
||||
etxop->etxo_qdesc_tso2_create(etp, ipv4_id, tcp_seq, mss, edp, count);
|
||||
etxop->etxo_qdesc_tso2_create(etp, ipv4_id, outer_ipv4_id,
|
||||
tcp_seq, mss, edp, count);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -164,7 +164,8 @@ sfc_efx_tso_do(struct sfc_efx_txq *txq, unsigned int idx,
|
||||
rte_memcpy(&sent_seq, &th->sent_seq, sizeof(uint32_t));
|
||||
sent_seq = rte_be_to_cpu_32(sent_seq);
|
||||
|
||||
efx_tx_qdesc_tso2_create(txq->common, packet_id, sent_seq, m->tso_segsz,
|
||||
efx_tx_qdesc_tso2_create(txq->common, packet_id, 0, sent_seq,
|
||||
m->tso_segsz,
|
||||
*pend, EFX_TX_FATSOV2_OPT_NDESCS);
|
||||
|
||||
*pend += EFX_TX_FATSOV2_OPT_NDESCS;
|
||||
|
Loading…
Reference in New Issue
Block a user