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:   Tue, 27 Sep 2022 20:48:52 +0800
From:   Zhengchao Shao <shaozhengchao@...wei.com>
To:     <netdev@...r.kernel.org>, <bpf@...r.kernel.org>,
        <jhs@...atatu.com>, <xiyou.wangcong@...il.com>, <jiri@...nulli.us>,
        <edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>
CC:     <ast@...nel.org>, <daniel@...earbox.net>, <andrii@...nel.org>,
        <martin.lau@...ux.dev>, <song@...nel.org>, <yhs@...com>,
        <john.fastabend@...il.com>, <kpsingh@...nel.org>, <sdf@...gle.com>,
        <haoluo@...gle.com>, <jolsa@...nel.org>, <weiyongjun1@...wei.com>,
        <yuehaibing@...wei.com>, <shaozhengchao@...wei.com>
Subject: [PATCH net-next 0/3] refactor duplicate codes in bind_class hook function

All the bind_class callback duplicate the same logic, so we can refactor
them. First, ensure n arg not empty before call bind_class hook function.
Then, add tc_cls_bind_class() helper. Last, use tc_cls_bind_class() in
filter.

Zhengchao Shao (3):
  net: sched: ensure n arg not empty before call bind_class
  net: sched: cls_api: introduce tc_cls_bind_class() helper
  net: sched: use tc_cls_bind_class() in filter

 include/net/pkt_cls.h    | 12 ++++++++++++
 net/sched/cls_basic.c    |  7 +------
 net/sched/cls_bpf.c      |  7 +------
 net/sched/cls_flower.c   |  7 +------
 net/sched/cls_fw.c       |  7 +------
 net/sched/cls_matchall.c |  7 +------
 net/sched/cls_route.c    |  7 +------
 net/sched/cls_rsvp.h     |  7 +------
 net/sched/cls_tcindex.c  |  7 +------
 net/sched/cls_u32.c      |  7 +------
 net/sched/sch_api.c      |  2 +-
 11 files changed, 22 insertions(+), 55 deletions(-)

-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ