From patchwork Thu Jan 18 10:32:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Bumiller X-Patchwork-Id: 862814 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zMgJn5fGxz9s7f for ; Thu, 18 Jan 2018 21:32:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755872AbeARKc4 (ORCPT ); Thu, 18 Jan 2018 05:32:56 -0500 Received: from proxmox-new.maurer-it.com ([212.186.127.180]:17679 "EHLO proxmox-new.maurer-it.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755614AbeARKcj (ORCPT ); Thu, 18 Jan 2018 05:32:39 -0500 Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 1189A42715; Thu, 18 Jan 2018 11:32:38 +0100 (CET) From: Wolfgang Bumiller To: netdev@vger.kernel.org Cc: Stephen Hemminger , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S . Miller" Subject: [PATCH net+iproute2 0/2] nbyte, cmp and text filter fixups Date: Thu, 18 Jan 2018 11:32:33 +0100 Message-Id: <20180118103236.32494-1-w.bumiller@proxmox.com> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The iproute2 part allows the the actual use of the already existing quoted string parsing. The kernel side fixes an oob read in em_nbyte and allows 'layer 0' in cmp and nbyte (and em_text whose existence surprised me given that I did not see it exposed via iproute2) to actually match layer 0 rather than being the same as specifying layer 1. I seem to have stumbled upon a layer of dust (says git-blame). Trying to match mac addresses I felt that the examples found online using the 'u32' filter were rather inconvenient, particularly given that there's the 'nbyte' filter around that could just memcmp the entire a byte sequence at once. Wolfgang Bumiller (1; 2): tc/lexer: let quotes actually start strings tc/emp_ematch.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) net: sched: em_nbyte: don't add the data offset twice net_sched: fix TCF_LAYER_LINK case in tcf_get_base_ptr include/net/pkt_cls.h | 2 +- net/sched/em_nbyte.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)