Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6644EC17440 for ; Tue, 12 Nov 2019 14:52:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49C4F21A49 for ; Tue, 12 Nov 2019 14:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbfKLOwc (ORCPT ); Tue, 12 Nov 2019 09:52:32 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:44324 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727677AbfKLOw1 (ORCPT ); Tue, 12 Nov 2019 09:52:27 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from roid@mellanox.com) with ESMTPS (AES256-SHA encrypted); 12 Nov 2019 16:52:21 +0200 Received: from mtr-vdi-191.wap.labs.mlnx. (mtr-vdi-191.wap.labs.mlnx [10.209.100.28]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id xACEqKx5020273; Tue, 12 Nov 2019 16:52:21 +0200 From: Roi Dayan To: netdev@vger.kernel.org Cc: David Ahern , Stephen Hemminger , Jiri Pirko , Eli Britstein , Roi Dayan Subject: [PATCH iproute2-next 0/8] flower match support for masked ports Date: Tue, 12 Nov 2019 16:51:46 +0200 Message-Id: <20191112145154.145289-1-roid@mellanox.com> X-Mailer: git-send-email 2.8.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, This series is for adding support for flower match on masked src/dst ports. First commits are preparations and fixing tos and ttl output. Last 3 commits add support for masked src/dst port. Thanks, Roi Eli Britstein (8): tc_util: introduce a function to print JSON/non-JSON masked numbers tc_util: add an option to print masked numbers with/without a newline tc: flower: fix newline prints for ct-mark and ct-zone tc_util: fix JSON prints for ct-mark and ct-zone tc: flower: fix output for ip tos and ttl tc: flower: add u16 big endian parse option tc_util: add functions for big endian masked numbers tc: flower: support masked port destination and source match man/man8/tc-flower.8 | 13 ++++---- tc/f_flower.c | 92 +++++++++++++++++++++++++++++++++------------------- tc/m_ct.c | 4 +-- tc/tc_util.c | 88 ++++++++++++++++++++++++++++++++++--------------- tc/tc_util.h | 8 +++-- 5 files changed, 136 insertions(+), 69 deletions(-) -- 2.8.4