All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: yihung.wei@gmail.com
Cc: netdev@vger.kernel.org, pshelar@ovn.org
Subject: Re: [PATCH net-next v2 0/2] openvswitch: Support conntrack zone limit
Date: Mon, 23 Apr 2018 09:39:27 -0400 (EDT)	[thread overview]
Message-ID: <20180423.093927.2276689799061091037.davem@davemloft.net> (raw)
In-Reply-To: <1524011429-14500-1-git-send-email-yihung.wei@gmail.com>

From: Yi-Hung Wei <yihung.wei@gmail.com>
Date: Tue, 17 Apr 2018 17:30:27 -0700

> Currently, nf_conntrack_max is used to limit the maximum number of
> conntrack entries in the conntrack table for every network namespace.
> For the VMs and containers that reside in the same namespace,
> they share the same conntrack table, and the total # of conntrack entries
> for all the VMs and containers are limited by nf_conntrack_max.  In this
> case, if one of the VM/container abuses the usage the conntrack entries,
> it blocks the others from committing valid conntrack entries into the
> conntrack table.  Even if we can possibly put the VM in different network
> namespace, the current nf_conntrack_max configuration is kind of rigid
> that we cannot limit different VM/container to have different # conntrack
> entries.
> 
> To address the aforementioned issue, this patch proposes to have a
> fine-grained mechanism that could further limit the # of conntrack entries
> per-zone.  For example, we can designate different zone to different VM,
> and set conntrack limit to each zone.  By providing this isolation, a
> mis-behaved VM only consumes the conntrack entries in its own zone, and
> it will not influence other well-behaved VMs.  Moreover, the users can
> set various conntrack limit to different zone based on their preference.
> 
> The proposed implementation utilizes Netfilter's nf_conncount backend
> to count the number of connections in a particular zone.  If the number of
> connection is above a configured limitation, OVS will return ENOMEM to the
> userspace.  If userspace does not configure the zone limit, the limit
> defaults to zero that is no limitation, which is backward compatible to
> the behavior without this patch.
> 
> The first patch defines the conntrack limit netlink definition, and the
> second patch provides the implementation.

Pravin, I need this series reviewed.

Thank you.

  parent reply	other threads:[~2018-04-23 13:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-18  0:30 [PATCH net-next v2 0/2] openvswitch: Support conntrack zone limit Yi-Hung Wei
2018-04-18  0:30 ` [PATCH net-next v2 1/2] openvswitch: Add conntrack limit netlink definition Yi-Hung Wei
2018-04-18  0:30 ` [PATCH net-next v2 2/2] openvswitch: Support conntrack zone limit Yi-Hung Wei
2018-04-24  6:30   ` Pravin Shelar
2018-04-25 21:51     ` Yi-Hung Wei
2018-04-27  7:28       ` Pravin Shelar
2018-04-23 13:39 ` David Miller [this message]
2018-04-23 20:10   ` [PATCH net-next v2 0/2] " Pravin Shelar
2018-04-23 21:19     ` Yi-Hung Wei
2018-04-24  6:34       ` Pravin Shelar
2018-04-24 17:42         ` David Miller
2018-04-24 18:21           ` Yi-Hung Wei
2018-04-24 19:03             ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180423.093927.2276689799061091037.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=pshelar@ovn.org \
    --cc=yihung.wei@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.