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

Function l2fwd_crypto_usage

dpdk/examples/l2fwd-crypto/main.c:981–1029  ·  view source on GitHub ↗

Display command line arguments usage */

Source from the content-addressed store, hash-verified

979
980/* Display command line arguments usage */
981static void
982l2fwd_crypto_usage(const char *prgname)
983{
984 printf("%s [EAL options] --\n"
985 " -p PORTMASK: hexadecimal bitmask of ports to configure\n"
986 " -q NQ: number of queue (=ports) per lcore (default is 1)\n"
987 " -s manage all ports from single lcore\n"
988 " -T PERIOD: statistics will be refreshed each PERIOD seconds"
989 " (0 to disable, 10 default, 86400 maximum)\n"
990
991 " --cdev_type HW / SW / ANY\n"
992 " --chain HASH_CIPHER / CIPHER_HASH / CIPHER_ONLY /"
993 " HASH_ONLY / AEAD\n"
994
995 " --cipher_algo ALGO\n"
996 " --cipher_op ENCRYPT / DECRYPT\n"
997 " --cipher_key KEY (bytes separated with \":\")\n"
998 " --cipher_key_random_size SIZE: size of cipher key when generated randomly\n"
999 " --cipher_iv IV (bytes separated with \":\")\n"
1000 " --cipher_iv_random_size SIZE: size of cipher IV when generated randomly\n"
1001 " --cipher_dataunit_len SIZE: length of the algorithm data-unit\n"
1002
1003 " --auth_algo ALGO\n"
1004 " --auth_op GENERATE / VERIFY\n"
1005 " --auth_key KEY (bytes separated with \":\")\n"
1006 " --auth_key_random_size SIZE: size of auth key when generated randomly\n"
1007 " --auth_iv IV (bytes separated with \":\")\n"
1008 " --auth_iv_random_size SIZE: size of auth IV when generated randomly\n"
1009
1010 " --aead_algo ALGO\n"
1011 " --aead_op ENCRYPT / DECRYPT\n"
1012 " --aead_key KEY (bytes separated with \":\")\n"
1013 " --aead_key_random_size SIZE: size of AEAD key when generated randomly\n"
1014 " --aead_iv IV (bytes separated with \":\")\n"
1015 " --aead_iv_random_size SIZE: size of AEAD IV when generated randomly\n"
1016 " --aad AAD (bytes separated with \":\")\n"
1017 " --aad_random_size SIZE: size of AAD when generated randomly\n"
1018
1019 " --digest_size SIZE: size of digest to be generated/verified\n"
1020
1021 " --sessionless\n"
1022 " --cryptodev_mask MASK: hexadecimal bitmask of crypto devices to configure\n"
1023
1024 " --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default)\n"
1025 " When enabled:\n"
1026 " - The source MAC address is replaced by the TX port MAC address\n"
1027 " - The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID\n",
1028 prgname);
1029}
1030
1031/** Parse crypto device type command line argument */
1032static int

Callers 1

l2fwd_crypto_parse_argsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected