Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INTRODUCTION
2. HOW TO BUILD/RUN
Syntax: port <uint> mtu <uint> rx_offload <uint> tx_offload <uint> ipv4 <ipv4>
ipv6 <ipv6>;
Default: -
Context: tldk_main
Example: port 0 rx_offload 0xf tx_offload 0xf ipv4 192.168.1.60;
Provides configuration information for particular DPDK ethdev port.
port - DPDK port id to be used to receive/send packets.
It is an mandatory option.
mtu - MTU to be used on that port (= application data size + L2/L3/L4
headers sizes, default=1514). It is an optional option.
rx_offload - RX HW offload capabilities to enable/use on this port.
(bitmask of DPDK DEV_RX_OFFLOAD_* values).
It is an optional option.
tx_offload - TX HW offload capabilities to enable/use on this port.
(bitmask of DPDK DEV_TX_OFFLOAD_* values).
It is an optional option.
ipv4 - IPv4 network address that will be assigned to that port.
At least one of ipv4/ipv6 has to be specified.
ipv6 - IPv6 network address that will be assigned to that port.
At least one of ipv4/ipv6 has to be specified.
For more details regarding TLDK related parameters in nginx config file,
please refer to app/nginx/conf/nginx-tldk.conf.
Syntax: be_in_worker;
Default: off
Context: tldk_ctx
Example: be_in_worker;
Specifies should TLDK context processing (Back-End) run inside NGINX worker
process, or as a separate thread (DPDK lcore) inside NGINX master process.
Syntax: dest dev <uint> addr <ipv4/ipv6> masklen <uint> mac <ether>
Default: -
Context: tldk_ctx
Example: dest dev 0 addr 192.168.1.0 masklen 24 mac 3C:FD:FE:9F:D1:E1;
Specifies routing information for given TLDK context.
dev - dev id inside given TLDK context.
addr - ipv4/ipv6 destination address.
masklen - destination network prefix length.
mac - destination ethernet address.