[PATCH/RFC] tun: defer skb_orphan() to tun_do_read()

2019-03-05 Thread Arthur Kepner
The attachment contains an UNTESTED patch (though a similar patch was tested with a 3.10 kernel). We've been chasing a bug where packet corruption is seen on a tap device. We have a PACKET_MMAP socket which is bound to a tap interface. When throughput goes above a threshold, we begin to se

Re: [PATCH] pktgen: fix races between control/worker threads

2006-02-16 Thread Arthur Kepner
On Thu, 16 Feb 2006, Jesse Brandeburg wrote: > > should i test this patch to see if it fixes the pktgen panic when > removing a network driver module (or renegotiating link, i don't > remember where i saw the failure) in the middle of a pktgen run? > Yes, please. Removing the network dri

Re: [PATCH] pktgen: fix races between control/worker threads

2006-02-16 Thread Arthur Kepner
On Thu, 16 Feb 2006, Robert Olsson wrote: > . > >if(remove) { > > > + t->control |= T_REMDEV; > > + pkt_dev->removal_mark = 1; > > >} > > Guess you should mark b

[PATCH] pktgen: fix races between control/worker threads

2006-02-15 Thread Arthur Kepner
an be freed once again in pktgen_stop_device(). This patch gives all responsibility for cleaning up a pktgen_dev's skb to the associated worker thread. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c --- a/net/core/pktgen.c +++

Re: [PATCH] pktgen: potential double free of pktgen_dev's skb

2006-02-15 Thread Arthur Kepner
On Wed, 15 Feb 2006, David S. Miller wrote: > > I don't see how this fixes the race > Well, of course. I was just checking that you were paying attention. It looks like the right thing to do is to let the worker thread free up the skb in all cases. New patch soon. -- Arthur - To un

[PATCH] pktgen: potential double free of pktgen_dev's skb

2006-02-14 Thread Arthur Kepner
removes the race by setting the pktgen_dev's skb to NULL before freeing it. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -2431,6 +2431,8 @@ static void show_result

[PATCH RESEND] s2io: set_multicast_list bug

2006-01-31 Thread Arthur Kepner
The mac_addr variable doesn't get reset between (re)additions of multicast addresses. One byte of all multicast addresses (except the first) can be incorrect. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- Arthur --- linux-2.6.orig/drivers/net/s2io.c 2006-01-24 04:26:09.4250

Re: [Bonding-devel] Re: [PATCH RESEND] bonding: allow bond to use TSO if slaves support it

2006-01-30 Thread Arthur Kepner
ufficient. > How does the following look? --- Add NETIF_F_TSO (NETIF_F_UFO) to BOND_INTERSECT_FEATURES so that it can be used by a bonding device iff all its slave devices support TSO (UFO). Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- Arthurdiff --git a/drivers/net/bonding/bond_main.

Re: [Bonding-devel] Re: [PATCH RESEND] bonding: allow bond to use TSO if slaves support it

2006-01-30 Thread Arthur Kepner
On Mon, 30 Jan 2006, Jay Vosburgh wrote: > > I believe that bond_compute_features() also needs logic to > disable NETIF_F_TSO if NETIF_F_SG is not set. > But if each slave device supports TSO, then each slave device also must support SG, and therefore the bond device will support SG

[PATCH RESEND] bonding: allow bond to use TSO if slaves support it

2006-01-30 Thread Arthur Kepner
Add NETIF_F_TSO to BOND_INTERSECT_FEATURES so that it can be used by a bonding device iff all its slave devices support TSO. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- Arthurdiff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c --- a/drivers/net/b

[PATCH] s2io: set_multicast_list bug

2006-01-24 Thread Arthur Kepner
The mac_addr variable doesn't get reset between (re)additions of multicast addresses. One byte of all multicast addresses (except the first) can be incorrect. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- Arthur --- linux-2.6.orig/drivers/net/s2io.c 2006-01-24 04:26:09.4250

Re: [PATCH] bonding: allow bond to use TSO if slaves support it

2006-01-18 Thread Arthur Kepner
On Wed, 18 Jan 2006, David S. Miller wrote: > > I thought we had fixed this already? Guess now :) > There was a patch some months ago to allow a bonding device to use zero-copy if all its slaves did - same idea (and implemented with the same code.) -- Arthur - To unsubscribe from thi

[PATCH] bonding: allow bond to use TSO if slaves support it

2006-01-18 Thread Arthur Kepner
Add NETIF_F_TSO to BOND_INTERSECT_FEATURES so that it can be used by a bonding device iff all its slave devices support TSO. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- Arthurdiff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c --- a/drivers/net/b

[PATCH 2.6.16] safer ipv4 reassembly

2005-11-22 Thread Arthur Kepner
accepting IP fragments, which can greatly reduce the possibility of reassembling fragments which originated from different IP datagrams. Signed off by: Arthur Kepner <[EMAIL PROTECTED]> diffstat: Documentation/networking/ip-sysctl.txt | 23 +++ include/linux/sysctl.h |

Re: Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-08-16 Thread Arthur Kepner
On Tue, 16 Aug 2005, Herbert Xu wrote: > . > So my preference for this isn't really based on particularly strong > reasons. However, as I couldn't see any strong reason for it to be > more strict either I'd rather stay with the one since it's slightly > simpler to code. > Fair enough. --

Re: Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-08-16 Thread Arthur Kepner
On Tue, 16 Aug 2005, Herbert Xu wrote: > On Thu, Aug 04, 2005 at 05:48:17PM -0700, Arthur Kepner wrote: > > > > @@ -366,6 +376,9 @@ static struct ipq *ip_frag_create(unsign > > . > > + qp->peer = sysctl_ipfrag_max_dist ? inet_getpeer(iph->saddr

Re: Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-08-04 Thread Arthur Kepner
On Sun, 31 Jul 2005, Herbert Xu wrote: > > Anyway, here is a patch to use inetpeer instead of that icky ipc > structure.? It sure cuts down the size of the patch :) > Herbert; I've been using the updated patch, and I like it. struct inet_peer is the right place to do this accounting. I m

[PATCH] bond inherits zero-copy flags of slaves

2005-08-03 Thread Arthur Kepner
?l=bonding-devel&m=111925242706297&w=2 and it's largely a combination of the patches that appear in those emails. Patch is against 2.6.13-rc5. Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> -- Arthurdiff -pur linux.orig/drivers/net/bonding/bonding.h linux.new/drivers/net/bonding/bonding

Re: Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-07-31 Thread Arthur Kepner
On Sun, 31 Jul 2005, Herbert Xu wrote: > . > Anyway, here is a patch to use inetpeer instead of that icky ipc > structure. It sure cuts down the size of the patch :) Icky?? (That's my baby you're talking about! :) The patch size reduction is impressive. > > I've only compile-tested this

Re: Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-07-31 Thread Arthur Kepner
On Sat, 30 Jul 2005, Herbert Xu wrote: > > I've finished my patch based on your work. Unfortunately the result > isn't as clean as I would've liked. However, it does point out a couple > of problems with your patch more clearly. Perhaps you could work on > those and come up with a better solu

Re: Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-07-31 Thread Arthur Kepner
On Sun, 31 Jul 2005, David S. Miller wrote: > . > I would also suggest that some reasonable non-zero default max_win > be choosen. This stuff will not get tested otherwise. > Agree with this. (And I'll comment on the previous several mails in this thread once I've had time to review mor

Resend: [RFC/PATCH] "safer ipv4 reassembly"

2005-07-27 Thread Arthur Kepner
net/ipv4/ip_fragment.c | 195 + net/ipv4/sysctl_net_ipv4.c | 11 ++ Signed-off-by: Arthur Kepner <[EMAIL PROTECTED]> On Tue, 28 Jun 2005, Arthur Kepner wrote: > > On Sun, 26 Jun 2005, Herbert Xu wrote: > &g

RE: [PATCH 2.6.12.1 5/12] S2io: Performance improvements

2005-07-08 Thread Arthur Kepner
On Thu, 7 Jul 2005, Raghavendra Koushik wrote: > > On an Altix machine I believe the readq was necessary to flush > the PIO writes. How long did you run the tests? I had seen > in long duration tests that an occasional write > (TXDL control word and the address) would be missed and the xmit

Re: [PATCH 2.6.12.1 5/12] S2io: Performance improvements

2005-07-07 Thread Arthur Kepner
On Thu, 7 Jul 2005 [EMAIL PROTECTED] wrote: > ... > 2. Removed unnecessary PIOs(read/write of tx_traffic_int and >rx_traffic_int) from interrupt handler and removed read of >general_int_status register from xmit routine. > .. > @@ -2891,6 +2869,8 @@ int s

Re: [RFC/PATCH] "safer ipv4 reassembly" (fwd)

2005-07-07 Thread Arthur Kepner
Version 2 of the rfc/patch is attached. It has been changed as indicated in the commentary below. Diffstat: include/linux/sysctl.h |1 net/ipv4/ip_fragment.c | 195 + net/ipv4/sysctl_net_ipv4.c | 11 ++ Signed-off-by: Arthur Kepner