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

Function cplane_decap

dpdk/app/test/test_cryptodev_security_pdcp.c:50–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static int
51cplane_decap(uint32_t sn_size, uint8_t dir,
52 enum enc_alg_off enc_alg_off,
53 enum auth_alg_off auth_alg_off)
54{
55 int i = 0;
56
57 switch (sn_size) {
58 case 5:
59 i = PDCP_CPLANE_OFFSET + enc_alg_off +
60 auth_alg_off + ((dir == 0) ?
61 UPLINK : DOWNLINK);
62 break;
63 case 12:
64 i = PDCP_CPLANE_LONG_SN_OFFSET + enc_alg_off +
65 auth_alg_off + ((dir == 0) ?
66 UPLINK : DOWNLINK);
67 break;
68 default:
69 printf("\nInvalid SN: %u for %s\n", sn_size, __func__);
70 }
71
72 return test_pdcp_proto_cplane_decap(i);
73}
74
75static int uplane_encap_no_integrity(uint32_t sn_size, uint8_t dir,
76 enum enc_alg_off enc_alg_off)

Callers 1

Calls 2

printfFunction · 0.50

Tested by

no test coverage detected