Home
last modified time | relevance | path

Searched hist:fd7627833ddf1d845dcc0edb14bff97ddbb1272e (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A DKconfigdiff fd7627833ddf1d845dcc0edb14bff97ddbb1272e Fri Mar 17 10:27:13 CDT 2023 Horatiu Vultur <horatiu.vultur@microchip.com> net: lan966x: Stop using packing library

When a frame is injected from CPU, it is required to create an IFH(Inter
frame header) which sits in front of the frame that is transmitted.
This IFH, contains different fields like destination port, to bypass the
analyzer, priotity, etc. Lan966x it is using packing library to set and
get the fields of this IFH. But this seems to be an expensive
operations.
If this is changed with a simpler implementation, the RX will be
improved with ~5Mbit while on the TX is a much bigger improvement as it
is required to set more fields. Below are the numbers for TX.

Before:
[ 5] 0.00-10.02 sec 439 MBytes 367 Mbits/sec 0 sender

After:
[ 5] 0.00-10.00 sec 578 MBytes 485 Mbits/sec 0 sender

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
H A Dlan966x_main.cdiff fd7627833ddf1d845dcc0edb14bff97ddbb1272e Fri Mar 17 10:27:13 CDT 2023 Horatiu Vultur <horatiu.vultur@microchip.com> net: lan966x: Stop using packing library

When a frame is injected from CPU, it is required to create an IFH(Inter
frame header) which sits in front of the frame that is transmitted.
This IFH, contains different fields like destination port, to bypass the
analyzer, priotity, etc. Lan966x it is using packing library to set and
get the fields of this IFH. But this seems to be an expensive
operations.
If this is changed with a simpler implementation, the RX will be
improved with ~5Mbit while on the TX is a much bigger improvement as it
is required to set more fields. Below are the numbers for TX.

Before:
[ 5] 0.00-10.02 sec 439 MBytes 367 Mbits/sec 0 sender

After:
[ 5] 0.00-10.00 sec 578 MBytes 485 Mbits/sec 0 sender

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>