[PATCH v2] ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

2017-01-08 Thread Pavel Tikhomirov
umentation we have "tcp_notsent_lowat - UNSIGNED INTEGER" v2: simplify to just proc_douintvec Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- net/ipv4/sysctl_net_ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ip

[PATCH] ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

2016-12-29 Thread Pavel Tikhomirov
umentation we have "tcp_notsent_lowat - UNSIGNED INTEGER" Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- net/ipv4/sysctl_net_ipv4.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 80bc

[PATCH 4/6] ip xfrm policy: add save/restore

2016-09-02 Thread Pavel Tikhomirov
eckpoint/restore for container migration. Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- ip/xfrm_policy.c | 73 ++ man/man8/ip-xfrm.8 | 8 ++ 2 files changed, 76 insertions(+), 5 deletions(-) diff --git a/ip/xf

[PATCH 1/6] ip: merge together all save_xxx_preps and xxx_dump_check_magics

2016-09-02 Thread Pavel Tikhomirov
want to reuse them in xfrm state/policy save Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- ip/ip_common.h | 3 +++ ip/ipaddress.c | 43 +++ ip/iproute.c | 18 +- ip/iprule.c

[PATCH 0/6] ip: add save/restore to xfrm tables

2016-09-02 Thread Pavel Tikhomirov
Pavel Tikhomirov (6): ip: merge together all save_xxx_preps and xxx_dump_check_magics ip: merge together all save_xxx to save_nlmsg ip xfrm state: add save/restore ip xfrm policy: add save/restore ip xfrm state: fixup hard/soft timeouts/limits while save ip xfrm policy: fixup hard/soft

[PATCH 3/6] ip xfrm state: add save/restore

2016-09-02 Thread Pavel Tikhomirov
This patch adds save and restore commands to "ip xfrm state" similar to commit 2f4e171f7df2 and commit f4ff11e3e298 for "ip rule" and "ip route" respectively. The feature is useful in checkpoint/restore for container migration. Signed-off-by: Pavel Tikhomirov <p

[PATCH 6/6] ip xfrm policy: fixup hard/soft timeouts/limits while save

2016-09-02 Thread Pavel Tikhomirov
same as for states, though I beleive that plicies do not actually support byte-soft | byte-hard | packet-soft | packet-hard, but they still can be set. Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- ip/ip_common.h | 5 + ip/xfrm_policy.c

[PATCH 5/6] ip xfrm state: fixup hard/soft timeouts/limits while save

2016-09-02 Thread Pavel Tikhomirov
h a timeout of 30sec and now we do C/R for the whole container. As the process in question knows nothing about C/R, after restore it might expect that xfrm state dissappears in 30-10=20sec, so we need to set timeout to 20. If difference is <=0 set 1 at least to do not lose the limit completely

[PATCH 2/6] ip: merge together all save_xxx to save_nlmsg

2016-09-02 Thread Pavel Tikhomirov
want to reuse them in xfrm state/policy save Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- ip/ip_common.h | 2 ++ ip/ipaddress.c | 14 -- ip/iproute.c | 23 +++ ip/iprule.c| 16 +--- 4 files changed, 18 insertions(

[PATCH v2] netfilter: nf_log: fix error on write NONE to logger choice sysctl

2016-07-01 Thread Pavel Tikhomirov
oc/sys/net/netfilter/nf_log/0 nfnetlink_log echo NONE > /proc/sys/net/netfilter/nf_log/0 cat /proc/sys/net/netfilter/nf_log/0 NONE v2: add missed error check for proc_dostring Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- net/netfilter/nf_log.c | 11 ++- 1 file

[PATCH] netfilter: nf_log: fix error on write NONE to logger choice sysctl

2016-07-01 Thread Pavel Tikhomirov
oc/sys/net/netfilter/nf_log/0 nfnetlink_log echo NONE > /proc/sys/net/netfilter/nf_log/0 cat /proc/sys/net/netfilter/nf_log/0 NONE Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- net/netfilter/nf_log.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) dif

Re: [Intel-wired-lan] [PATCH v2] ixgbe: on recv increment rx.ring->stats.yields

2015-12-25 Thread Pavel Tikhomirov
Hi, please, let me know if I need to fix something else here. On 12/11/2015 05:05 PM, Pavel Tikhomirov wrote: It seem to be non intentionaly changed to tx in commit adc810900a70 ("ixgbe: Refactor busy poll socket code to address multiple issues") Lock is taken from ixgbe_low_la

[PATCH v2] ixgbe: on recv increment rx.ring->stats.yields

2015-12-11 Thread Pavel Tikhomirov
ield stats can be shown through ethtool: ethtool -S enp129s0 | grep yield v2: follow commit citing style Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethe

[PATCH] ixgbe: on recv increment rx.ring->stats.yields instead of tx

2015-12-10 Thread Pavel Tikhomirov
tx counter. Yield stats can be shown through ethtool: ethtool -S enp129s0 | grep yield Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel