Home
last modified time | relevance | path

Searched refs:l2 (Results 1 – 20 of 20) sorted by relevance

/dpdk/lib/node/
H A Dpkt_cls.c34 uint8_t l0, l1, l2, l3, last_type; in pkt_cls_node_process() local
81 l2 = mbuf2->packet_type & in pkt_cls_node_process()
90 (last_type ^ l2) | (last_type ^ l3); in pkt_cls_node_process()
122 if (p_nxt[l2] == next_index) { in pkt_cls_node_process()
128 p_nxt[l2], from[2]); in pkt_cls_node_process()
142 if ((last_type != l3) && (l2 == l3) && in pkt_cls_node_process()
/dpdk/lib/ipsec/
H A Desp_outb.c442 uint32_t i, k, n, l2, l3; in esp_outb_trs_prepare() local
462 l2 = mb[i]->l2_len; in esp_outb_trs_prepare()
475 outb_cop_prepare(cop[k], sa, iv, &icv, l2 + l3, rc); in esp_outb_trs_prepare()
538 uint32_t l2, l3; in cpu_outb_pkt_prepare() local
557 l2 = mb[i]->l2_len; in cpu_outb_pkt_prepare()
561 l4ofs[k] = (l2 + l3) & cofs_mask; in cpu_outb_pkt_prepare()
H A Desp_inb.c642 uint32_t i, k, l2, tl, bytes; in trs_process() local
666 l2 = mb[i]->l2_len; in trs_process()
675 update_trs_l3hdr(sa, np + l2, mb[i]->pkt_len, in trs_process()
676 l2, hl[i] - l2, espt[i].next_proto); in trs_process()
/dpdk/drivers/net/ngbe/
H A Dngbe_ptypes.c22 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument
23 [ptid] = (RTE_PTYPE_L2_##l2 | \
H A Dngbe_ptypes.h96 u32 l2:4; /* outer mac */ member
/dpdk/drivers/net/i40e/
H A Drte_pmd_i40e.c2127 uint32_t l2, l3, l4, tnl, il2, il3, il4; in check_invalid_pkt_type() local
2129 l2 = pkt_type & RTE_PTYPE_L2_MASK; in check_invalid_pkt_type()
2137 if (l2 && in check_invalid_pkt_type()
2138 l2 != RTE_PTYPE_L2_ETHER && in check_invalid_pkt_type()
2139 l2 != RTE_PTYPE_L2_ETHER_TIMESYNC && in check_invalid_pkt_type()
2140 l2 != RTE_PTYPE_L2_ETHER_ARP && in check_invalid_pkt_type()
2141 l2 != RTE_PTYPE_L2_ETHER_LLDP && in check_invalid_pkt_type()
2142 l2 != RTE_PTYPE_L2_ETHER_NSH && in check_invalid_pkt_type()
2143 l2 != RTE_PTYPE_L2_ETHER_VLAN && in check_invalid_pkt_type()
2144 l2 != RTE_PTYPE_L2_ETHER_QINQ && in check_invalid_pkt_type()
[all …]
/dpdk/app/test/
H A Dtest_mbuf.c1412 uint16_t l2; in test_tx_offload() member
1420 txof.l2 = rte_rand() % (1 << RTE_MBUF_L2_LEN_BITS); in test_tx_offload()
1434 txof.l2, txof.l3, txof.l4, txof.tso, txof.l3, txof.l2); in test_tx_offload()
1447 set_tx_offload(mb + i, txof.l2, txof.l3, txof.l4, in test_tx_offload()
1448 txof.tso, txof.l3, txof.l2); in test_tx_offload()
1461 mb[i].tx_offload = rte_mbuf_tx_offload(txof.l2, txof.l3, in test_tx_offload()
1462 txof.l4, txof.tso, txof.l3, txof.l2, 0); in test_tx_offload()
/dpdk/drivers/net/txgbe/
H A Dtxgbe_ptypes.h126 u32 l2:4; /* outer mac */ member
H A Dtxgbe_ptypes.c33 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument
34 [ptid] = (RTE_PTYPE_L2_##l2 | \
/dpdk/drivers/net/enic/base/
H A Dvnic_flowman.h115 } __rte_packed l2; member
/dpdk/drivers/net/failsafe/
H A Dfailsafe_ops.c849 struct rte_eth_link *l2; in fs_link_update() local
852 l2 = &ETH(TX_SUBDEV(dev))->data->dev_link; in fs_link_update()
853 if (memcmp(l1, l2, sizeof(*l1))) { in fs_link_update()
854 *l1 = *l2; in fs_link_update()
/dpdk/drivers/net/enic/
H A Denic_fm_flow.c427 memcpy(&fm_data->l2.eth, spec, sizeof(struct rte_ether_hdr)); in enic_fm_copy_item_eth()
428 memcpy(&fm_mask->l2.eth, mask, sizeof(struct rte_ether_hdr)); in enic_fm_copy_item_eth()
461 eth_mask = (void *)&fm_mask->l2.eth; in enic_fm_copy_item_vlan()
462 eth_val = (void *)&fm_data->l2.eth; in enic_fm_copy_item_vlan()
916 (fm_mask->l2.eth.fk_ethtype != UINT16_MAX || in enic_fm_copy_item_ecpri()
917 rte_cpu_to_be_16(fm_data->l2.eth.fk_ethtype) != in enic_fm_copy_item_ecpri()
/dpdk/doc/guides/prog_guide/img/
H A Drib_pic.svg19 <path d="M2 1 0 0l2-1v2" style="stroke:none" id="path11"/>
H A Drib_internals.svg10 <path d="M2 1 0 0l2-1v2" style="stroke:none" id="path742"/>
H A Ddir_24_8_alg.svg34 <path d="M2 1 0 0l2-1v2" style="stroke:none" id="path12"/>
/dpdk/drivers/net/tap/
H A Drte_eth_tap.c310 uint32_t l2 = mbuf->packet_type & RTE_PTYPE_L2_MASK; in tap_verify_csum() local
320 if (l2 == RTE_PTYPE_L2_ETHER_VLAN) in tap_verify_csum()
322 else if (l2 == RTE_PTYPE_L2_ETHER_QINQ) in tap_verify_csum()
/dpdk/doc/guides/prog_guide/
H A Dgeneric_segmentation_offload_lib.rst157 first output packet has the original UDP header, and others just have l2
H A Dlink_bonding_poll_mode_drv_lib.rst443 to l2 (layer 2) forwarding, the other transmission policies available are
/dpdk/doc/guides/nics/
H A Dmvpp2.rst268 - ``<forward_bad_frames>``: Indicate whether to forward or drop l2 bad packets (0 or 1).
/dpdk/doc/guides/testpmd_app_ug/
H A Dtestpmd_funcs.rst1885 Configure the l2 to be used when encapsulating a packet with L2::
1899 Configure the l2 to be removed when decapsulating a packet with L2::
2452 ipv6-other|l2-payload|ipv6-ex|ipv6-tcp-ex|\
2585 testpmd> set bonding balance_xmit_policy (port_id) (l2|l23|l34)
3297 flow_director_flex_payload (port_id) (raw|l2|l3|l4) (config)
5487 actions rss types eth l2-src-only end queues end / end