linux/net/ieee802154
Nikolay Aleksandrov 1bab4c7507 inet: frag: set limits and make init_net's high_thresh limit global
This patch makes init_net's high_thresh limit to be the maximum for all
namespaces, thus introducing a global memory limit threshold equal to the
sum of the individual high_thresh limits which are capped.
It also introduces some sane minimums for low_thresh as it shouldn't be
able to drop below 0 (or > high_thresh in the unsigned case), and
overall low_thresh should not ever be above high_thresh, so we make the
following relations for a namespace:
init_net:
 high_thresh - max(not capped), min(init_net low_thresh)
 low_thresh - max(init_net high_thresh), min (0)

all other namespaces:
 high_thresh = max(init_net high_thresh), min(namespace's low_thresh)
 low_thresh = max(namespace's high_thresh), min(0)

The major issue with having low_thresh > high_thresh is that we'll
schedule eviction but never evict anything and thus rely only on the
timers.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-07-27 22:34:36 -07:00
..
6lowpan_iphc.c ieee802154: remove unnecessary break after goto 2014-07-15 16:27:01 -07:00
6lowpan_rtnl.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
af802154.h mac802154: use header operations to create/parse headers 2014-03-14 22:15:26 -04:00
af_ieee802154.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
dgram.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
header_ops.c ieee802154: add definitions for link-layer security and header functions 2014-05-15 15:51:42 -04:00
ieee802154.h 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
Kconfig ieee802154: fix whitespace issues in Kconfig 2014-03-04 20:12:44 -05:00
Makefile ieee802154: add header structs with endiannes and operations 2014-03-14 22:15:26 -04:00
netlink.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
nl_policy.c ieee802154: add netlink interfaces for llsec 2014-05-16 17:23:41 -04:00
nl-mac.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
nl-phy.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
raw.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00
reassembly.c inet: frag: set limits and make init_net's high_thresh limit global 2014-07-27 22:34:36 -07:00
reassembly.h ieee802154: use ieee802154_addr instead of *_sa variants 2014-03-14 22:15:26 -04:00
wpan-class.c 6lowpan: mac802154: fix coding style issues 2014-07-07 20:55:22 -07:00