summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/prox_args.c
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2018-04-20 05:28:26 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-20 05:28:26 +0000
commitca2085d3c7a630da6a1f28ee49b605d214d6b2e7 (patch)
tree435910b261f29cf7bbc9742d56891968af1f9f5a /VNFs/DPPD-PROX/prox_args.c
parent5feebc8726530d07c29c651b8c54d37c57cb8e8f (diff)
parente9da2a14ec116912033a88f08261bc193a9c445d (diff)
Merge "Add support for reception of jumbo frames"
Diffstat (limited to 'VNFs/DPPD-PROX/prox_args.c')
-rw-r--r--VNFs/DPPD-PROX/prox_args.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/prox_args.c b/VNFs/DPPD-PROX/prox_args.c
index 08f27e9e..53223cad 100644
--- a/VNFs/DPPD-PROX/prox_args.c
+++ b/VNFs/DPPD-PROX/prox_args.c
@@ -546,6 +546,20 @@ static int get_port_cfg(unsigned sindex, char *str, void *data)
}
cfg->port_conf.rxmode.hw_strip_crc = val;
}
+ else if (STR_EQ(str, "mtu size")) {
+ uint32_t val;
+ if (parse_int(&val, pkey)) {
+ return -1;
+ }
+ if (val) {
+ cfg->mtu = val;
+ if (cfg->mtu + ETHER_HDR_LEN + ETHER_CRC_LEN > ETHER_MAX_LEN) {
+ cfg->port_conf.rxmode.max_rx_pkt_len = cfg->mtu + ETHER_HDR_LEN + ETHER_CRC_LEN + 2 * PROX_VLAN_TAG_SIZE;
+ cfg->port_conf.rxmode.jumbo_frame = 1;
+ }
+ }
+ }
+
else if (STR_EQ(str, "rss")) {
uint32_t val;
if (parse_bool(&val, pkey)) {