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:   Wed,  9 Aug 2017 14:30:30 +0200
From:   Jiri Pirko <jiri@...nulli.us>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, jhs@...atatu.com, xiyou.wangcong@...il.com,
        daniel@...earbox.net, mlxsw@...lanox.com, andrew@...n.ch,
        vivien.didelot@...oirfairelinux.com, f.fainelli@...il.com,
        jakub.kicinski@...ronome.com, simon.horman@...ronome.com,
        pieter.jansenvanvuuren@...ronome.com, oss-drivers@...ronome.com,
        ganeshgr@...lsio.com, jeffrey.t.kirsher@...el.com,
        saeedm@...lanox.com, matanb@...lanox.com, leonro@...lanox.com
Subject: [patch net-next 0/5] net: sched: let the offloader decide what to offload

From: Jiri Pirko <jiri@...lanox.com>

Currently there is a Qdisc_class_ops->tcf_cl_offload callback
that is called to find out if cls would offload rule or not.
This is only supported by sch_ingress and sch_clsact.
So the Qdisc are to decide. However, the driver knows what is he
able to offload, so move the decision making to drivers completely.
Just pass classid there and provide set of helpers to allow
identification of qdisc.

As a side effect, this actually allows clsact egress rules
offload in mlxsw.

Jiri Pirko (5):
  net: sched: Add helpers to identify classids
  net: sched: propagate classid down to offload drivers
  net: sched: use newly added classid identity helpers
  net: sched: remove handle propagation down to the drivers
  net: sched: remove cops->tcf_cl_offload

 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c     |  2 +-
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c       |  2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c   |  2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c    |  2 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c      | 18 ++++++++++++++++--
 drivers/net/ethernet/netronome/nfp/bpf/main.c       |  2 +-
 drivers/net/ethernet/netronome/nfp/flower/offload.c |  2 +-
 include/net/pkt_cls.h                               | 18 +++++-------------
 include/net/pkt_sched.h                             | 14 ++++++++++++++
 include/net/sch_generic.h                           |  1 -
 net/dsa/slave.c                                     |  9 ++++++++-
 net/sched/cls_bpf.c                                 |  4 ++--
 net/sched/cls_flower.c                              |  8 ++++----
 net/sched/cls_matchall.c                            |  4 ++--
 net/sched/cls_u32.c                                 |  8 ++++----
 net/sched/sch_ingress.c                             | 12 ------------
 16 files changed, 61 insertions(+), 47 deletions(-)

-- 
2.9.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ