All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [next PATCH S49 01/15] i40e: drop is_vf and is_netdev fields in struct i40e_mac_filter
Date: Fri, 30 Sep 2016 00:03:23 -0700	[thread overview]
Message-ID: <1475219003.2320.38.camel@intel.com> (raw)
In-Reply-To: <1475169095-20873-2-git-send-email-bimmy.pujari@intel.com>

On Thu, 2016-09-29 at 10:11 -0700, Bimmy Pujari wrote:
> From: Jacob Keller <jacob.e.keller@intel.com>
> 
> Originally the is_vf and is_netdev fields were added in order to
> distinguish between VF and netdev filters in a single VSI. However, it
> can be noted that we use separate VSI for SRIOV VFs and for netdev VSI.
> Thus, since a single VSI should only ever have one type of filter, we
> can simply remove the checks and remove the typing.
> 
> In a similar fashion, we can note that the only remaining way to get
> multiple filters of a single type is through a debug command that was
> added to debugfs. This command is useless in practice, and results in
> causing bugs if we keep counter tracking but lose the is_vf and
> is_netdev protections as desired above.
> 
> Since the only time we'd actually have a counter value besides 0 and
> 1 is through use of this debugfs hook, we can remove this unnecessary
> command, and the entire counter logic it required.
> 
> We vastly simplify mac filters by removing
> 
> (a) the distinction between vf and netdev filters
> (b) counting logic
> (c) the ability to add and remove filters bypassing the stack via debugfs
> 
> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> Change-ID: Idf916dd2a1159b1188ddbab5bef6b85ea6bf27d9

Does not compile, here are the errors:

[23:59:15 @jtkirshe-linux:next-queue]$ make -j 77 -s
? DESCEND??objtool
drivers/net/ethernet/intel/i40e/i40e_fcoe.c: In function
?i40e_fcoe_config_netdev?:
drivers/net/ethernet/intel/i40e/i40e_fcoe.c:1526:2: error: too many
arguments to function ?i40e_add_filter?
? i40e_add_filter(vsi, hw->mac.san_addr, 0, false, false);
? ^~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/intel/i40e/i40e_fcoe.c:37:0:
drivers/net/ethernet/intel/i40e/i40e.h:722:25: note: declared here
?struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
?????????????????????????^~~~~~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_fcoe.c:1527:2: error: too many
arguments to function ?i40e_add_filter?
? i40e_add_filter(vsi, (u8[6]) FC_FCOE_FLOGI_MAC, 0, false, false);
? ^~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/intel/i40e/i40e_fcoe.c:37:0:
drivers/net/ethernet/intel/i40e/i40e.h:722:25: note: declared here
?struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
?????????????????????????^~~~~~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_fcoe.c:1528:2: error: too many
arguments to function ?i40e_add_filter?
? i40e_add_filter(vsi, FIP_ALL_FCOE_MACS, 0, false, false);
? ^~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/intel/i40e/i40e_fcoe.c:37:0:
drivers/net/ethernet/intel/i40e/i40e.h:722:25: note: declared here
?struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
?????????????????????????^~~~~~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_fcoe.c:1529:2: error: too many
arguments to function ?i40e_add_filter?
? i40e_add_filter(vsi, FIP_ALL_ENODE_MACS, 0, false, false);
? ^~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/intel/i40e/i40e_fcoe.c:37:0:
drivers/net/ethernet/intel/i40e/i40e.h:722:25: note: declared here
?struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
?????????????????????????^~~~~~~~~~~~~~~
scripts/Makefile.build:289: recipe for target
'drivers/net/ethernet/intel/i40e/i40e_fcoe.o' failed
make[5]: *** [drivers/net/ethernet/intel/i40e/i40e_fcoe.o] Error 1
make[5]: *** Waiting for unfinished jobs....
scripts/Makefile.build:440: recipe for target
'drivers/net/ethernet/intel/i40e' failed
make[4]: *** [drivers/net/ethernet/intel/i40e] Error 2
scripts/Makefile.build:440: recipe for target 'drivers/net/ethernet/intel'
failed
make[3]: *** [drivers/net/ethernet/intel] Error 2
scripts/Makefile.build:440: recipe for target 'drivers/net/ethernet' failed
make[2]: *** [drivers/net/ethernet] Error 2
scripts/Makefile.build:440: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:968: recipe for target 'drivers' failed
make: *** [drivers] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160930/f6f17b56/attachment.asc>

  reply	other threads:[~2016-09-30  7:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-29 17:11 [Intel-wired-lan] [next PATCH S49 00/15] i40e/i40evf updates Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 01/15] i40e: drop is_vf and is_netdev fields in struct i40e_mac_filter Bimmy Pujari
2016-09-30  7:03   ` Jeff Kirsher [this message]
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 02/15] i40e: make use of __dev_uc_sync and __dev_mc_sync Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 03/15] i40e: move i40e_put_mac_in_vlan and i40e_del_mac_all_vlan Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 04/15] i40e: fix i40e_put_mac_in_vlan to return actual filter added Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 05/15] i40e: When searching all MAC/VLAN filters, ignore removed filters Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 06/15] i40e: implement __i40e_del_filter and use where applicable Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 07/15] i40e: store MAC/VLAN filters in a hash with the MAC Address as key Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 08/15] i40e: properly cleanup on allocation failure in i40e_sync_vsi_filters Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 09/15] i40e: fix mac filters when removing vlans Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 10/15] i40e: avoid looping to check whether we're in vlan mode Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 11/15] i40e: remove duplicate add/delete adminq command code for filters Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 12/15] i40e: correct check for reading TSYNINDX from the receive descriptor Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 13/15] i40e: use a mutex instead of spinlock in PTP user entry points Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 14/15] i40e: replace PTP Rx timestamp hang logic Bimmy Pujari
2016-09-29 17:11 ` [Intel-wired-lan] [next PATCH S49 15/15] i40evf: avoid an extra msleep while waiting for reset Bimmy Pujari
2016-09-30  7:02 ` [Intel-wired-lan] [next PATCH S49 00/15] i40e/i40evf updates Jeff Kirsher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1475219003.2320.38.camel@intel.com \
    --to=jeffrey.t.kirsher@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.