lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 21 Nov 2014 14:49:26 -0800
From:	roopa@...ulusnetworks.com
To:	jiri@...nulli.us, sfeldma@...il.com, jhs@...atatu.com,
	bcrl@...ck.org, tgraf@...g.ch, john.fastabend@...il.com,
	stephen@...workplumber.org, linville@...driver.com,
	nhorman@...driver.com, nicolas.dichtel@...nd.com,
	vyasevic@...hat.com, f.fainelli@...il.com, buytenh@...tstofly.org,
	aviadr@...lanox.com
Cc:	netdev@...r.kernel.org, davem@...emloft.net,
	shrijeet@...ulusnetworks.com, gospo@...ulusnetworks.com,
	Roopa Prabhu <roopa@...ulusnetworks.com>
Subject: [RFC PATCH 0/4] switch device: offload policy attributes

From: Roopa Prabhu <roopa@...ulusnetworks.com>


This series aims at introducing new policy attibutes/flags to enable
selective offloading of kernel network objects.
This is in the context of supporting switch devices in the linux kernel.

Assumption:
    - All kernel network objects (routes, neighs, bridges, bonds, vxlans)
      can be offloaded (This is true today with a few exceptions maybe)

policy points:
    - By default all objects exist in software (kernel)
    - Per object flag to add/del/show in kernel, hardware or both
    - System global option to turn on/off offloads for all network objects.
      This is for systems who want to turn offloading on for all network objects
      by default. us :). Apps dont need to know about offloading in this
      model. (TBD)

Patches are based on jiri/sfeldma's rocker work.

Apologize for the incomplete and untested code. This is a sample patch
 to get some initial feedback.

Roopa Prabhu (4):
  rtnetlink: new flag NLM_F_HW_OFFLOAD to indicate kernel object
    offload to hardware
  netdev: new feature flag NETIF_F_HW_OFFLOAD to indicate netdev object
    offload to hardware
  swdevice: new generic op to set bridge port attr
  bridge: make hw offload conditional on bridge and bridge port offload
    flags

 include/linux/netdev_features.h |    1 +
 include/net/switchdev.h         |    8 ++++++-
 include/uapi/linux/netlink.h    |    2 ++
 net/bridge/br_netlink.c         |   50 +++++++++++++++++++++++++++++++--------
 net/bridge/br_private.h         |    2 ++
 net/bridge/br_stp.c             |    9 ++++---
 net/bridge/br_stp_if.c          |    8 +++++--
 net/core/rtnetlink.c            |    7 ++++++
 net/switchdev/switchdev.c       |   17 +++++++++++++
 9 files changed, 88 insertions(+), 16 deletions(-)

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists