Re: [PATCH net] sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit

2018-11-20 Thread David Miller
From: Marcelo Ricardo Leitner Date: Tue, 20 Nov 2018 22:56:07 -0200 > On Mon, Nov 19, 2018 at 12:39:55PM -0800, David Miller wrote: >> From: Xin Long >> Date: Sun, 18 Nov 2018 15:07:38 +0800 >> >> > Now sctp increases sk_wmem_alloc by 1 when doing set_owner_w for the >> > skb allocked in

Re: [PATCH net] sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit

2018-11-20 Thread Marcelo Ricardo Leitner
On Mon, Nov 19, 2018 at 12:39:55PM -0800, David Miller wrote: > From: Xin Long > Date: Sun, 18 Nov 2018 15:07:38 +0800 > > > Now sctp increases sk_wmem_alloc by 1 when doing set_owner_w for the > > skb allocked in sctp_packet_transmit and decreases by 1 when freeing > > this skb. > > > > But

Re: [PATCH net] sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit

2018-11-19 Thread David Miller
From: Xin Long Date: Sun, 18 Nov 2018 15:07:38 +0800 > Now sctp increases sk_wmem_alloc by 1 when doing set_owner_w for the > skb allocked in sctp_packet_transmit and decreases by 1 when freeing > this skb. > > But when this skb goes through networking stack, some subcomponents > might change

[PATCH net] sctp: count sk_wmem_alloc by skb truesize in sctp_packet_transmit

2018-11-17 Thread Xin Long
Now sctp increases sk_wmem_alloc by 1 when doing set_owner_w for the skb allocked in sctp_packet_transmit and decreases by 1 when freeing this skb. But when this skb goes through networking stack, some subcomponents might change skb->truesize and add the same amount on sk_wmem_alloc. However sctp