Skip to contentSkip to conversation

Resetting packet statistics

PATCH Kris Katterjohn 2 participants 2 messages Nov 29, 2005

lore
Share & tools
lore
#0 lore raw

From: David S. Miller
Sent: 11/28/2005 10:12:38 PM

Quoted 3 lines

You can't change existing behavior in order to get the new behavior you want. Some applications might be depending upon what happens currently.

Is there a way to work around this? It seems to me this is a better way of doing it because it doesn't require extra variables on the user's end and the stats are only changed if you explicitly ask for it. Do you agree with that?

Kris

#1 lore raw

From: "Kris Katterjohn" <[email protected]>
Date: Mon, 28 Nov 2005 22:28:18 -0800

Quoted 7 lines

From: David S. Miller
Sent: 11/28/2005 10:12:38 PM

Quoted 3 lines

You can't change existing behavior in order to get the new behavior you want. Some applications might be depending upon what happens currently.

Is there a way to work around this?

Why not create a new call that doesn't reset the statistic, and change your application to invoke it instead of the call which exists?

That's one backwards compatible way to fix things like this.

Or, you can create a new call that says "from now on, do not reset statistics on calls using this socket." That's another clean, and backwards compatible way, to deal with this kind of issue.