[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180411114303.6f927c45@cakuba.netronome.com>
Date: Wed, 11 Apr 2018 11:43:14 -0700
From: Jakub Kicinski <kubakici@...pl>
To: Michael Chan <michael.chan@...adcom.com>,
Andy Gospodarek <gospo@...adcom.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH net v2 2/6] bnxt_en: do not allow wildcard matches for
L2 flows
On Wed, 11 Apr 2018 11:50:14 -0400, Michael Chan wrote:
> @@ -764,6 +788,41 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, struct bnxt_tc_flow *flow)
> return false;
> }
>
> + /* Currently source/dest MAC cannot be partial wildcard */
> + if (bits_set(&flow->l2_key.smac, sizeof(flow->l2_key.smac)) &&
> + !is_exactmatch(flow->l2_mask.smac, sizeof(flow->l2_mask.smac))) {
> + netdev_info(bp->dev, "Wildcard match unsupported for Source MAC\n");
This wouldn't be something to do in net, but how do you feel about
using extack for messages like this?
> + return false;
> + }
Powered by blists - more mailing lists