net/memif: change link speed to 100G

Message ID 20221010093516.10080-1-nathan.skrzypczak@gmail.com (mailing list archive)
State Accepted, archived
Delegated to: Andrew Rybchenko
Headers
Series net/memif: change link speed to 100G |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS

Commit Message

Nathan Skrzypczak Oct. 10, 2022, 9:35 a.m. UTC
  This patch changes the advertised link speed for the memif
driver from 10G to 100G as the memory interfaces can reach
higher throughputs than 10G with large packets.

Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
---
 drivers/net/memif/rte_eth_memif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Andrew Rybchenko Nov. 6, 2022, 10:46 a.m. UTC | #1
On 10/10/22 12:35, Nathan Skrzypczak wrote:
> This patch changes the advertised link speed for the memif
> driver from 10G to 100G as the memory interfaces can reach
> higher throughputs than 10G with large packets.
> 
> Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>

Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
  
Andrew Rybchenko Nov. 6, 2022, 10:51 a.m. UTC | #2
On 11/6/22 13:46, Andrew Rybchenko wrote:
> On 10/10/22 12:35, Nathan Skrzypczak wrote:
>> This patch changes the advertised link speed for the memif
>> driver from 10G to 100G as the memory interfaces can reach
>> higher throughputs than 10G with large packets.
>>
>> Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
> 
> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
> 
> 


Applied to dpdk-next-net/main, thanks.
  

Patch

diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c
index 5b5cae34ea..1b1c1a652b 100644
--- a/drivers/net/memif/rte_eth_memif.c
+++ b/drivers/net/memif/rte_eth_memif.c
@@ -55,7 +55,7 @@  static const char * const valid_arguments[] = {
 };
 
 static const struct rte_eth_link pmd_link = {
-	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_speed = RTE_ETH_SPEED_NUM_100G,
 	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
 	.link_status = RTE_ETH_LINK_DOWN,
 	.link_autoneg = RTE_ETH_LINK_AUTONEG