MCPcopy Create free account
hub / github.com/F-Stack/f-stack / show_security_context

Function show_security_context

dpdk/app/proc-info/main.c:956–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954#endif
955
956static void
957show_security_context(uint16_t portid, bool inline_offload)
958{
959 void *p_ctx;
960 const struct rte_security_capability *s_cap;
961
962 if (inline_offload)
963 p_ctx = rte_eth_dev_get_sec_ctx(portid);
964 else
965 p_ctx = rte_cryptodev_get_sec_ctx(portid);
966
967 if (p_ctx == NULL)
968 return;
969
970 printf(" - crypto context\n");
971 printf("\t -- security context - %p\n", p_ctx);
972 printf("\t -- size %u\n",
973 rte_security_session_get_size(p_ctx));
974
975 s_cap = rte_security_capabilities_get(p_ctx);
976 if (s_cap) {
977 printf("\t -- action (0x%x), protocol (0x%x),"
978 " offload flags (0x%x)\n",
979 s_cap->action,
980 s_cap->protocol,
981 s_cap->ol_flags);
982 printf("\t -- capabilities - oper type %x\n",
983 s_cap->crypto_capabilities->op);
984 }
985}
986
987static void
988show_offloads(uint64_t offloads,

Callers 2

show_portFunction · 0.85
show_cryptoFunction · 0.85

Calls 5

rte_eth_dev_get_sec_ctxFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected