Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Herbert Xu <herbert@...>
Cc: netdev <netdev@...>, David Miller <davem@...>, <haoki@...>
Date: Wednesday, March 26, 2008 - 4:47 pm

Hello Herbert,

Thank you for your quick response.

Herbert Xu wrote:

I understood your point. 

Since keeping correct truesize is important to network memory
accounting, I want to fix network subsystem part at least.

I think that it is inconvenient for caller functions to need
updateing truesize by themselves. How about this change to
avoid the inconvenience?

 - Current implementation is renamed to __pskb_expand_head().
 - Drivers call __pskb_expand_head() instead of pskb_expand_head().
 - New pskb_expand_head() updates truesize after calling 
  __pskb_expand_head(). 

Or, should I simply add truesize calculation after
pskb_expand_head() calls which change truesize?
 

I see.

Regards,
Hideo

-- 
Hitachi Computer Products (America) Inc.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [NET] [0/2] pskb_expand_head() bugfix, Hideo AOKI, (Tue Mar 25, 2:39 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, David Miller, (Thu Mar 27, 7:48 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Hideo AOKI, (Fri Mar 28, 9:02 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, David Miller, (Fri Mar 28, 9:11 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Hideo AOKI, (Fri Mar 28, 9:21 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Herbert Xu, (Tue Mar 25, 7:55 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Hideo AOKI, (Wed Mar 26, 4:47 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, David Miller, (Thu Mar 27, 7:49 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Hideo AOKI, (Fri Mar 28, 9:14 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Herbert Xu, (Wed Mar 26, 8:13 pm)
Re: [RFC] [NET] [0/2] pskb_expand_head() bugfix, Hideo AOKI, (Fri Mar 28, 9:01 pm)
[RFC PATCH] [NET] [1/2] revert audit_expand(), Hideo AOKI, (Tue Mar 25, 2:41 pm)