From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 C9D49C282C0 for ; Fri, 25 Jan 2019 10:37:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A22E9218D2 for ; Fri, 25 Jan 2019 10:37:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726689AbfAYKhM (ORCPT ); Fri, 25 Jan 2019 05:37:12 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:34765 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726485AbfAYKhM (ORCPT ); Fri, 25 Jan 2019 05:37:12 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from chrism@mellanox.com) with ESMTPS (AES256-SHA encrypted); 25 Jan 2019 12:37:10 +0200 Received: from reg-r-vrt-018-120.mtr.labs.mlnx (reg-r-vrt-018-120.mtr.labs.mlnx [10.213.18.120]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x0PAbAC5017500; Fri, 25 Jan 2019 12:37:10 +0200 From: Chris Mi To: netdev@vger.kernel.org Cc: dsahern@gmail.com, chrism@mellanox.com Subject: [patch iproute2] libnetlink: linkdump_req: AF_PACKET family also expects ext_filter_mask Date: Fri, 25 Jan 2019 10:37:07 +0000 Message-Id: <1548412627-6006-1-git-send-email-chrism@mellanox.com> X-Mailer: git-send-email 2.7.5 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Without this fix, the VF info can't be showed using command "ip link". 146: ens1f0: mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 24:8a:07:ad:78:52 brd ff:ff:ff:ff:ff:ff vf 0 MAC 02:25:d0:12:01:01, spoof checking off, link-state auto, trust off, query_rss off vf 1 MAC 02:25:d0:12:01:02, spoof checking off, link-state auto, trust off, query_rss off Fixes: d97b16b2c906 ("libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_mask") Signed-off-by: Chris Mi --- lib/libnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 110f47b..3beb434 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -476,7 +476,7 @@ int rtnl_linkdump_req_filter(struct rtnl_handle *rth, int family, int rtnl_linkdump_req_filter_fn(struct rtnl_handle *rth, int family, req_filter_fn_t filter_fn) { - if (family == AF_UNSPEC) { + if (family == AF_UNSPEC || family == AF_PACKET) { struct { struct nlmsghdr nlh; struct ifinfomsg ifm; -- 2.7.5