MCPcopy Index your code
hub / github.com/F-Stack/f-stack / destroy_default_flow

Function destroy_default_flow

dpdk/app/test/test_security_inline_macsec.c:367–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367static void
368destroy_default_flow(uint16_t portid)
369{
370 struct rte_flow_error err;
371 int ret;
372
373 if (default_tx_flow[portid]) {
374 ret = rte_flow_destroy(portid, default_tx_flow[portid], &err);
375 if (ret) {
376 printf("\nDefault Tx flow rule destroy failed\n");
377 return;
378 }
379 default_tx_flow[portid] = NULL;
380 }
381 if (default_rx_flow[portid]) {
382 ret = rte_flow_destroy(portid, default_rx_flow[portid], &err);
383 if (ret) {
384 printf("\nDefault Rx flow rule destroy failed\n");
385 return;
386 }
387 default_rx_flow[portid] = NULL;
388 }
389}
390
391static void
392print_ethaddr(const char *name, const struct rte_ether_addr *eth_addr)

Callers 1

test_macsecFunction · 0.70

Calls 2

rte_flow_destroyFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected