[Devel] [PATCH vz9] net: conntrack: fix typo in limiting conntrack allocations

2021-10-27 Thread Nikita Yushchenko
Due to that typo, conntrack got completely disabled. Fix the typo, and also export symbol that becomes required as soon as the typo gets fixed. Fixes: 0471849583d7 ("net: Primitives to enable conntrack allocation") Signed-off-by: Nikita Yushchenko --- include/net/netfilter/nf_conntrack.h| 2

[Devel] [PATCH RH9 0/3] ve/net: add net_device->ve_features

2021-10-27 Thread Pavel Tikhomirov
We've previousely used net_device->features bits for our own flags (NETIF_F_VIRTUAL and friends). Currenly there is not enough place for all our flags. So let's add our own flag variable on net_device. https://jira.sw.ru/browse/PSBM-135200 Signed-off-by: Pavel Tikhomirov Konstantin Khorenko (1):

[Devel] [PATCH RHEL9 COMMIT] ms/prctl: allow to setup brk for et_dyn executables

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.18 --> commit ef55e767180e9fb6530f90cd17aec85e074b3720 Author: Cyrill Gorcunov Date: Wed Oct 27 12:51:51 2021 +0300 ms/prctl: allow to setup br

[Devel] [PATCH RHEL8 COMMIT] ms/prctl: allow to setup brk for et_dyn executables

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-305.3.1.vz8.7.17 --> commit f8a5726e40b8f62bf199b14f4cf2e308894c4809 Author: Cyrill Gorcunov Date: Wed Oct 27 12:59:51 2021 +0300 ms/prctl: al

[Devel] [PATCH RH9] ve/cgroup: fix sleeping call under spin_lock

2021-10-27 Thread Alexander Mikhalitsyn
[ 120.818119] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:201 [ 120.819805] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3299, name: vzctl [ 120.821504] INFO: lockdep is turned off. [ 120.823206] irq event stamp: 6130 [ 120.824901] hardirqs last

[Devel] [PATCH RH9] ve/cgroup: fix sleeping call under spin_lock

2021-10-27 Thread Alexander Mikhalitsyn
We get crash on a container start: [ 120.818119] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:201 [ 120.819805] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3299, name: vzctl [ 120.821504] INFO: lockdep is turned off. [ 120.823206] irq event stamp:

[Devel] [PATCH RH9 v2] ve/cgroup: fix sleeping call under spin_lock

2021-10-27 Thread Alexander Mikhalitsyn
We get crash on a container start: [ 120.818119] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:201 [ 120.819805] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3299, name: vzctl [ 120.821504] INFO: lockdep is turned off. [ 120.823206] irq event stamp:

[Devel] [PATCH RH9 3/3] vzeth: bits and pieces of our interface

2021-10-27 Thread Pavel Tikhomirov
From: Konstantin Khorenko Signed-off-by: Konstantin Khorenko Signed-off-by: Konstantin Khlebnikov Signed-off-by: Stanislav Kinsbursky Signed-off-by: Andrew Vagin Signed-off-by: Vladimir Davydov Signed-off-by: Cyrill Gorcunov vz9 changes: - remove excess vzctl_veth.h - remove excess include

[Devel] [PATCH RH9 1/3] config/venet: make VE_NETDEV depend on VE

2021-10-27 Thread Pavel Tikhomirov
In drivers/net/venetdev.c (which is config VE_NETDEV) we use net->owner_ve (which is under config VE), so probably it's a good idea to make VE_NETDEV depend from VE in Kconfig. https://jira.sw.ru/browse/PSBM-135200 Fixes: 12b9b0869be8 ("drivers/net/ve: venet network device introduced") Signed-off-

[Devel] [PATCH RH9 2/3] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Pavel Tikhomirov
Replace features member uses for per-ve features with ve_features member under CONFIG_VE. Later we would likely want to split this patch and put each fixup hunk in proper base patch: Fixes: be40f8f443f9 ("ve/net/dummy: enable support in a container") Fixes: b3345177cf1f ("net: Add NETIF_F_VIRTUAL

Re: [Devel] [PATCH RH9 1/3] config/venet: make VE_NETDEV depend on VE

2021-10-27 Thread Cyrill Gorcunov
On Wed, Oct 27, 2021 at 04:05:19PM +0300, Pavel Tikhomirov wrote: > In drivers/net/venetdev.c (which is config VE_NETDEV) we use > net->owner_ve (which is under config VE), so probably it's a good idea > to make VE_NETDEV depend from VE in Kconfig. > > https://jira.sw.ru/browse/PSBM-135200 > Fixes

[Devel] [PATCH RHEL9 COMMIT] ve/cgroup: fix sleeping call under spin_lock

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.19 --> commit d45767c9075496422c5aa67d3f65673070365cef Author: Alexander Mikhalitsyn Date: Wed Oct 27 16:19:09 2021 +0300 ve/cgroup: fix sleepi

[Devel] [PATCH RHEL9 COMMIT] net: conntrack: fix typo in limiting conntrack allocations

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.19 --> commit 0d8d986bc2d68f20cab986155f9ac03ce856f724 Author: Nikita Yushchenko Date: Wed Oct 27 16:19:09 2021 +0300 net: conntrack: fix typo

Re: [Devel] [PATCH RH9 2/3] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Cyrill Gorcunov
Very good job, Pasha! I've just a few comments but I really like the current result. On Wed, Oct 27, 2021 at 04:05:20PM +0300, Pavel Tikhomirov wrote: > NETIF_F_GRO_UDP_FWD_BIT,/* Allow UDP GRO for forwarding */ > - /* here goes NETIF_F_HW_MACSEC_BIT in ms, temporarily reverted *

Re: [Devel] [PATCH RH9 3/3] vzeth: bits and pieces of our interface

2021-10-27 Thread Cyrill Gorcunov
On Wed, Oct 27, 2021 at 04:05:21PM +0300, Pavel Tikhomirov wrote: > > +#ifdef CONFIG_VE > +static int vzethdev_filter(struct sk_buff *skb, struct net_device *dev, > struct net_device *rcv) > +{ > + /* Filtering */ > + if (ve_is_super(dev_net(dev)->owner_ve) && > + dev->ve_feature

Re: [Devel] [PATCH RH9 2/3] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Pavel Tikhomirov
On 27.10.2021 16:25, Cyrill Gorcunov wrote: Very good job, Pasha! I've just a few comments but I really like the current result. Thanks! On Wed, Oct 27, 2021 at 04:05:20PM +0300, Pavel Tikhomirov wrote: NETIF_F_GRO_UDP_FWD_BIT,/* Allow UDP GRO for forwarding */ - /*

Re: [Devel] [PATCH RH9 2/3] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Cyrill Gorcunov
On Wed, Oct 27, 2021 at 05:08:07PM +0300, Pavel Tikhomirov wrote: > > > diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c > > > index 2b1d004d6a1f..dfd0a989c4ab 100644 > > > --- a/net/bridge/br_forward.c > > > +++ b/net/bridge/br_forward.c > > > @@ -33,7 +33,10 @@ static inline int sho

[Devel] [PATCH RH9 v2 0/3] ve/net: add net_device->ve_features

2021-10-27 Thread Pavel Tikhomirov
We've previousely used net_device->features bits for our own flags (NETIF_F_VIRTUAL and friends). Currenly there is not enough place for all our flags. So let's add our own flag variable on net_device. https://jira.sw.ru/browse/PSBM-135200 Signed-off-by: Pavel Tikhomirov Konstantin Khorenko (1):

[Devel] [PATCH v2 RH9 1/3] config/venet: make VE_NETDEV depend on VE

2021-10-27 Thread Pavel Tikhomirov
In drivers/net/venetdev.c (which is config VE_NETDEV) we use net->owner_ve (which is under config VE), so probably it's a good idea to make VE_NETDEV depend from VE in Kconfig. https://jira.sw.ru/browse/PSBM-135200 Fixes: 12b9b0869be8 ("drivers/net/ve: venet network device introduced") Signed-off-

[Devel] [PATCH v2 RH9 3/3] vzeth: bits and pieces of our interface

2021-10-27 Thread Pavel Tikhomirov
From: Konstantin Khorenko Signed-off-by: Konstantin Khorenko Signed-off-by: Konstantin Khlebnikov Signed-off-by: Stanislav Kinsbursky Signed-off-by: Andrew Vagin Signed-off-by: Vladimir Davydov Signed-off-by: Cyrill Gorcunov vz9 changes: - remove excess vzctl_veth.h - remove excess include

Re: [Devel] [PATCH RH9 3/3] vzeth: bits and pieces of our interface

2021-10-27 Thread Pavel Tikhomirov
On 27.10.2021 16:43, Cyrill Gorcunov wrote: On Wed, Oct 27, 2021 at 04:05:21PM +0300, Pavel Tikhomirov wrote: +#ifdef CONFIG_VE +static int vzethdev_filter(struct sk_buff *skb, struct net_device *dev, struct net_device *rcv) +{ + /* Filtering */ + if (ve_is_super(dev_net(dev)-

[Devel] [PATCH v2 RH9 2/3] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Pavel Tikhomirov
Replace features member uses for per-ve features with ve_features member under CONFIG_VE. Later we would likely want to split this patch and put each fixup hunk in proper base patch: Fixes: be40f8f443f9 ("ve/net/dummy: enable support in a container") Fixes: b3345177cf1f ("net: Add NETIF_F_VIRTUAL

Re: [Devel] [PATCH RH9 v2] ve/cgroup: fix sleeping call under spin_lock

2021-10-27 Thread Pavel Tikhomirov
Reviewed-by: Pavel Tikhomirov On 27.10.2021 14:55, Alexander Mikhalitsyn wrote: We get crash on a container start: [ 120.818119] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:201 [ 120.819805] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3299, nam

Re: [Devel] [PATCH RH9 v2 0/3] ve/net: add net_device->ve_features

2021-10-27 Thread Cyrill Gorcunov
On Wed, Oct 27, 2021 at 05:45:25PM +0300, Pavel Tikhomirov wrote: > We've previousely used net_device->features bits for our own flags > (NETIF_F_VIRTUAL and friends). Currenly there is not enough place for > all our flags. So let's add our own flag variable on net_device. > > https://jira.sw.ru/b

[Devel] [PATCH RH9 1/2] dm-tracking: Track request after it completed

2021-10-27 Thread Kirill Tkhai
Otherwise there is a race in case of userspace calls "tracking_get_next" and dumps cluster before the request is written completely. Signed-off-by: Kirill Tkhai --- drivers/md/dm-tracking.c | 47 +++--- 1 file changed, 40 insertions(+), 7 deletions(-) d

[Devel] [PATCH RH9 2/2] dm-tracking: Do not return EAGAIN in case of there is no changed clu

2021-10-27 Thread Kirill Tkhai
Return nothing (we do not call DMEMIT() in this case) instead. EAGAIN may confuse a user. Signed-off-by: Kirill Tkhai --- drivers/md/dm-tracking.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-tracking.c b/drivers/md/dm-tracking.c index a8880a83d270..e66060

[Devel] [PATCH RH9] dm-ploop: Remove tracking code

2021-10-27 Thread Kirill Tkhai
We use generic driver instead. Signed-off-by: Kirill Tkhai --- drivers/md/dm-ploop-cmd.c| 165 -- drivers/md/dm-ploop-map.c| 38 -- drivers/md/dm-ploop-target.c |3 - drivers/md/dm-ploop.h| 13 --- 4 files changed, 219 dele

[Devel] [PATCH RHEL9 COMMIT] config/venet: make VE_NETDEV depend on VE

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.20 --> commit 8858a65f7c79fb010f90d0253e9b9d0babe26b3c Author: Pavel Tikhomirov Date: Wed Oct 27 19:07:42 2021 +0300 config/venet: make VE_NETD

[Devel] [PATCH RHEL9 COMMIT] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.20 --> commit b5e3a6c536cd98b083a899c634698966e15cfc45 Author: Pavel Tikhomirov Date: Wed Oct 27 19:07:43 2021 +0300 ve/net/features: put per-v

[Devel] [PATCH RHEL9 COMMIT] vzeth: bits and pieces of our interface

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.20 --> commit 9eb81eca18c3aa4c617cddc9e4f312e6ba1cfbe4 Author: Konstantin Khorenko Date: Wed Oct 27 19:07:43 2021 +0300 vzeth: bits and pieces

[Devel] [PATCH RHEL9 COMMIT] dm-tracking: Track request after it completed

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.20 --> commit ae2c1ce302a46aad93caae509ee7e84df03af043 Author: Kirill Tkhai Date: Wed Oct 27 19:13:53 2021 +0300 dm-tracking: Track request aft

[Devel] [PATCH RHEL9 COMMIT] dm-tracking: Do not return EAGAIN in case of there is no changed clu

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.20 --> commit 4eff8e438b581cf1160a7b466e477696158cd6c8 Author: Kirill Tkhai Date: Wed Oct 27 19:13:54 2021 +0300 dm-tracking: Do not return EAG

[Devel] [PATCH RHEL9 COMMIT] Revert "Revert "ms/net: introduce the MACSEC netdev feature""

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.21 --> commit 7fe252ec3ca86b97d26a82002622bd21e1a072a2 Author: Konstantin Khorenko Date: Wed Oct 27 19:18:27 2021 +0300 Revert "Revert "ms/net:

[Devel] [PATCH RHEL9 COMMIT] Revert "Revert "ms/net: macsec: add support for offloading to the MAC""

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.21 --> commit 757bceb25b582ff2c600196969f8bf46ff048060 Author: Konstantin Khorenko Date: Wed Oct 27 19:19:27 2021 +0300 Revert "Revert "ms/net:

[Devel] [PATCH RHEL9 COMMIT] Revert "Revert "ms/net: introduce the MACSEC netdev feature""

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.21 --> commit 7fe252ec3ca86b97d26a82002622bd21e1a072a2 Author: Konstantin Khorenko Date: Wed Oct 27 19:18:27 2021 +0300 Revert "Revert "ms/net:

[Devel] [PATCH RHEL9 COMMIT] Revert "configs: Disable aQuantia AQtion(tm) Ethernet card support"

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.21 --> commit 289146f83b9eb938688ebd630dff3363c7fc9bd1 Author: Konstantin Khorenko Date: Wed Oct 27 19:19:57 2021 +0300 Revert "configs: Disabl

[Devel] [PATCH RHEL9 COMMIT] Revert "Revert "ms/net: macsec: report real_dev features when HW offloading is enabled""

2021-10-27 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.21 --> commit 56c632876072d07ac9a67aa26b010fe42b860ee0 Author: Konstantin Khorenko Date: Wed Oct 27 19:19:38 2021 +0300 Revert "Revert "ms/net:

Re: [Devel] [PATCH v2 RH9 2/3] ve/net/features: put per-ve netdev features to separate struct member

2021-10-27 Thread Konstantin Khorenko
On 27.10.2021 17:45, Pavel Tikhomirov wrote: Replace features member uses for per-ve features with ve_features member under CONFIG_VE. Later we would likely want to split this patch and put each fixup hunk in proper base patch: Fixes: be40f8f443f9 ("ve/net/dummy: enable support in a container")