From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toshiaki Makita Subject: Re: [PATCH net-next 5/5] rocker: remove support for legacy VLAN ndo ops Date: Thu, 04 Jun 2015 23:35:22 +0900 Message-ID: <5570622A.8000407@gmail.com> References: <1433183947-13095-1-git-send-email-sfeldma@gmail.com> <1433183947-13095-6-git-send-email-sfeldma@gmail.com> <556D363A.5010005@lab.ntt.co.jp> <20150601.222442.1854333703599698362.davem@davemloft.net> <556D96ED.9010309@mojatatu.com> <556DE0CD.9080000@cumulusnetworks.com> <556F209A.6090304@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: roopa , Jamal Hadi Salim , David Miller , Toshiaki Makita , Netdev , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , "simon.horman@netronome.com" To: Scott Feldman Return-path: Received: from mail-pa0-f52.google.com ([209.85.220.52]:35536 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753197AbbFDOf0 (ORCPT ); Thu, 4 Jun 2015 10:35:26 -0400 Received: by padjw17 with SMTP id jw17so30884190pad.2 for ; Thu, 04 Jun 2015 07:35:26 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 15/06/04 (=E6=9C=A8) 15:05, Scott Feldman wrote: > On Thu, 4 Jun 2015, Toshiaki Makita wrote: > >> Bridge's vlan_filtering is handled in master->op->foo(), not in >> port->op->foo(). >> Can't we introduce another switchdev handler that performs MASTER >> operation instead of calling SELF operation? >> >> br_afspec() >> nbp_vlan_add() >> netdev_switch_port_vlan_add() >> rocker->ndo_switch_port_vlan_add() <- only used for MASTER operati= on >> >> I'm wondering why SELF operation (rocker->ndo_bridge_setlink()) does >> what should be done in MASTER operation. > > Something like this: This looks very close to what I'm suggesting, although I'm not sure if we need switchdev_port_obj_add() to be exclusive with vlan_vid_add(). =46or rocker, keeping NETIF_F_HW_VLAN_[CTAG/STAG]_FILTER dropped makes vlan_vid_add() essentially noop. Toshiaki Makita