Re: [PATCH net] net: stmmac: Use hrtimer for TX coalescing

2020-11-23 Thread Vincent Whitchurch
On Tue, Nov 24, 2020 at 01:46:00AM +0100, Jakub Kicinski wrote: > On Fri, 20 Nov 2020 16:02:08 +0100 Vincent Whitchurch wrote: > > This driver uses a normal timer for TX coalescing, which means that the > > with the default tx-usecs of 1000 microseconds the cleanups actually >

[PATCH net] net: stmmac: Use hrtimer for TX coalescing

2020-11-20 Thread Vincent Whitchurch
hrtimer instead. On my ARM platform with HZ=100 and the default TX coalescing settings (tx-frames 25 tx-usecs 1000), with "tc qdisc add dev eth0 root netem delay 60ms 40ms rate 50Mbit" run on the server, netperf's TCP_STREAM improves from ~5.5 Mbps to ~100 Mbps. Signed-off-by: Vin

[PATCH] tcp: really ignore MSG_ZEROCOPY if no SO_ZEROCOPY

2018-09-06 Thread Vincent Whitchurch
e7db ("tcp: enable MSG_ZEROCOPY") Signed-off-by: Vincent Whitchurch --- net/core/skbuff.c | 3 --- net/ipv4/tcp.c| 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index c996c09d095f..b2c807f67aba 100644 --- a/net/core/skbuff.c +++

[PATCH v2 net-next] packet: add sockopt to ignore outgoing packets

2018-09-03 Thread Vincent Whitchurch
outgoing packets to solve this. Note that the *BSDs already have something similar: BIOCSSEESENT/BIOCSDIRECTION and BIOCSDIRFILT. The first intended user is lldpd. Signed-off-by: Vincent Whitchurch --- v2: Stricter value validation. Moved ignore check out of skb_loop_sk(). include/linux

[PATCH net-next] packet: add sockopt to ignore outgoing packets

2018-08-30 Thread Vincent Whitchurch
outgoing packets to solve this. Note that the *BSDs already have something similar: BIOCSSEESENT/BIOCSDIRECTION and BIOCSDIRFILT. The first intended user is lldpd. Signed-off-by: Vincent Whitchurch --- include/linux/netdevice.h | 1 + include/uapi/linux/if_packet.h | 1 + net/core/dev.c