net/octeontx2: add unicast MAC filter
[dpdk.git] / doc / guides / nics / octeontx2.rst
1 ..  SPDX-License-Identifier: BSD-3-Clause
2     Copyright(C) 2019 Marvell International Ltd.
3
4 OCTEON TX2 Poll Mode driver
5 ===========================
6
7 The OCTEON TX2 ETHDEV PMD (**librte_pmd_octeontx2**) provides poll mode ethdev
8 driver support for the inbuilt network device found in **Marvell OCTEON TX2**
9 SoC family as well as for their virtual functions (VF) in SR-IOV context.
10
11 More information can be found at `Marvell Official Website
12 <https://www.marvell.com/embedded-processors/infrastructure-processors>`_.
13
14 Features
15 --------
16
17 Features of the OCTEON TX2 Ethdev PMD are:
18
19 - Promiscuous mode
20 - SR-IOV VF
21 - Lock-free Tx queue
22 - MAC filtering
23 - Port hardware statistics
24 - Link state information
25 - Debug utilities - Context dump and error interrupt support
26
27 Prerequisites
28 -------------
29
30 See :doc:`../platform/octeontx2` for setup information.
31
32 Compile time Config Options
33 ---------------------------
34
35 The following options may be modified in the ``config`` file.
36
37 - ``CONFIG_RTE_LIBRTE_OCTEONTX2_PMD`` (default ``y``)
38
39   Toggle compilation of the ``librte_pmd_octeontx2`` driver.
40
41 Runtime Config Options
42 ----------------------
43
44 - ``HW offload ptype parsing disable`` (default ``0``)
45
46    Packet type parsing is HW offloaded by default and this feature may be toggled
47    using ``ptype_disable`` ``devargs`` parameter.
48
49 - ``Rx&Tx scalar mode enable`` (default ``0``)
50
51    Ethdev supports both scalar and vector mode, it may be selected at runtime
52    using ``scalar_enable`` ``devargs`` parameter.
53
54 - ``RSS reta size`` (default ``64``)
55
56    RSS redirection table size may be configured during runtime using ``reta_size``
57    ``devargs`` parameter.
58
59    For example::
60
61       -w 0002:02:00.0,reta_size=256
62
63    With the above configuration, reta table of size 256 is populated.
64
65 - ``Flow priority levels`` (default ``3``)
66
67    RTE Flow priority levels can be configured during runtime using
68    ``flow_max_priority`` ``devargs`` parameter.
69
70    For example::
71
72       -w 0002:02:00.0,flow_max_priority=10
73
74    With the above configuration, priority level was set to 10 (0-9). Max
75    priority level supported is 32.
76
77 - ``Reserve Flow entries`` (default ``8``)
78
79    RTE flow entries can be pre allocated and the size of pre allocation can be
80    selected runtime using ``flow_prealloc_size`` ``devargs`` parameter.
81
82    For example::
83
84       -w 0002:02:00.0,flow_prealloc_size=4
85
86    With the above configuration, pre alloc size was set to 4. Max pre alloc
87    size supported is 32.
88
89 - ``Max SQB buffer count`` (default ``512``)
90
91    Send queue descriptor buffer count may be limited during runtime using
92    ``max_sqb_count`` ``devargs`` parameter.
93
94    For example::
95
96       -w 0002:02:00.0,max_sqb_count=64
97
98    With the above configuration, each send queue's decscriptor buffer count is
99    limited to a maximum of 64 buffers.
100
101
102 .. note::
103
104    Above devarg parameters are configurable per device, user needs to pass the
105    parameters to all the PCIe devices if application requires to configure on
106    all the ethdev ports.