summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarc Sune <marcdevel@gmail.com>2016-04-01 00:12:29 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-04-01 21:38:34 +0200
commit82113036e4e54a82ec485a05acce9a43ceb60552 (patch)
tree289cf206c6be574ddf7776f2090d1938037f98da /examples
parente274f57322253a0da4b565f8df0175503c67258d (diff)
downloaddpdk-82113036e4e54a82ec485a05acce9a43ceb60552.zip
dpdk-82113036e4e54a82ec485a05acce9a43ceb60552.tar.gz
dpdk-82113036e4e54a82ec485a05acce9a43ceb60552.tar.xz
ethdev: redesign link speed config
This patch redesigns the API to set the link speed/s configuration of an ethernet port. Specifically: - it allows to define a set of advertised speeds for auto-negociation. - it allows to disable link auto-negociation (single fixed speed). - default: auto-negociate all supported speeds. A flag autoneg in struct rte_eth_link indicates if link speed was a result of auto-negociation or was fixed by configuration. Signed-off-by: Marc Sune <marcdevel@gmail.com> Tested-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Tested-by: Beilei Xing <beilei.xing@intel.com> Tested-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ip_pipeline/config_parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/config_parse.c
index 152889d..2cd5707 100644
--- a/examples/ip_pipeline/config_parse.c
+++ b/examples/ip_pipeline/config_parse.c
@@ -87,8 +87,7 @@ static const struct app_link_params link_params_default = {
.pci_bdf = {0},
.conf = {
- .link_speed = 0,
- .link_duplex = 0,
+ .link_speeds = 0,
.rxmode = {
.mq_mode = ETH_MQ_RX_NONE,