X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Focteontx2%2Fotx2_ethdev_devargs.c;h=83f905315b38d4d149fd8cb7f3ed2d90f7720dcd;hb=c2a42d19d967e24223f06f2fc797eaed8e17c345;hp=d4a85bf55ede2eb67f1705789c592dd071c9bb1a;hpb=3b0bc725f096e833b19f812c81b2642e0c364f8b;p=dpdk.git diff --git a/drivers/net/octeontx2/otx2_ethdev_devargs.c b/drivers/net/octeontx2/otx2_ethdev_devargs.c index d4a85bf55e..83f905315b 100644 --- a/drivers/net/octeontx2/otx2_ethdev_devargs.c +++ b/drivers/net/octeontx2/otx2_ethdev_devargs.c @@ -114,7 +114,17 @@ parse_switch_header_type(const char *key, const char *value, void *extra_args) *(uint16_t *)extra_args = OTX2_PRIV_FLAGS_EDSA; if (strcmp(value, "chlen90b") == 0) - *(uint16_t *)extra_args = OTX2_PRIV_FLAGS_LEN_90B; + *(uint16_t *)extra_args = OTX2_PRIV_FLAGS_CH_LEN_90B; + + if (strcmp(value, "chlen24b") == 0) + *(uint16_t *)extra_args = OTX2_PRIV_FLAGS_CH_LEN_24B; + + if (strcmp(value, "exdsa") == 0) + *(uint16_t *)extra_args = OTX2_PRIV_FLAGS_EXDSA; + + if (strcmp(value, "vlan_exdsa") == 0) + *(uint16_t *)extra_args = OTX2_PRIV_FLAGS_VLAN_EXDSA; + return 0; } @@ -191,14 +201,14 @@ exit: return -EINVAL; } -RTE_PMD_REGISTER_PARAM_STRING(net_octeontx2, +RTE_PMD_REGISTER_PARAM_STRING(OCTEONTX2_PMD, OTX2_RSS_RETA_SIZE "=<64|128|256>" OTX2_IPSEC_IN_MAX_SPI "=<1-65535>" OTX2_SCL_ENABLE "=1" OTX2_MAX_SQB_COUNT "=<8-512>" OTX2_FLOW_PREALLOC_SIZE "=<1-32>" OTX2_FLOW_MAX_PRIORITY "=<1-32>" - OTX2_SWITCH_HEADER_TYPE "=" + OTX2_SWITCH_HEADER_TYPE "=" OTX2_RSS_TAG_AS_XOR "=1" OTX2_NPA_LOCK_MASK "=<1-65535>" OTX2_LOCK_RX_CTX "=1"