From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH net-next 1/2] rtnetlink: allow GSO maximums to be passed to device Date: Fri, 1 Dec 2017 12:11:57 -0800 Message-ID: <20171201201158.25594-2-sthemmin@microsoft.com> References: <20171201201158.25594-1-sthemmin@microsoft.com> Cc: netdev@vger.kernel.org, Stephen Hemminger To: davem@davemloft.net Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:39142 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752283AbdLAUMK (ORCPT ); Fri, 1 Dec 2017 15:12:10 -0500 Received: by mail-pf0-f196.google.com with SMTP id l24so5105655pfj.6 for ; Fri, 01 Dec 2017 12:12:10 -0800 (PST) In-Reply-To: <20171201201158.25594-1-sthemmin@microsoft.com> Sender: netdev-owner@vger.kernel.org List-ID: Allow GSO maximum segments and size as netlink parameters on input. Signed-off-by: Stephen Hemminger --- net/core/rtnetlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index dabba2a91fc8..8138194c5f81 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -1569,6 +1569,8 @@ static const struct nla_policy ifla_policy[IFLA_MAX+1] = { [IFLA_PROMISCUITY] = { .type = NLA_U32 }, [IFLA_NUM_TX_QUEUES] = { .type = NLA_U32 }, [IFLA_NUM_RX_QUEUES] = { .type = NLA_U32 }, + [IFLA_GSO_MAX_SEGS] = { .type = NLA_U32 }, + [IFLA_GSO_MAX_SIZE] = { .type = NLA_U32 }, [IFLA_PHYS_PORT_ID] = { .type = NLA_BINARY, .len = MAX_PHYS_ITEM_ID_LEN }, [IFLA_CARRIER_CHANGES] = { .type = NLA_U32 }, /* ignored */ [IFLA_PHYS_SWITCH_ID] = { .type = NLA_BINARY, .len = MAX_PHYS_ITEM_ID_LEN }, -- 2.11.0