From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 9D9DE9602 for ; Tue, 1 Mar 2016 08:37:36 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id p65so22557642wmp.1 for ; Mon, 29 Feb 2016 23:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=a07lwbeT8OsqzI3fLFmZw1D6PcFA3akFmeB31GRurwo=; b=c0hEeLhWEDOaYTK3UOjRMkaHaIw+vo2ZWve8nOpi6/bgSh/whmwu/CNiVeGYQ3jQF1 LalCWcH4H9mghcqQFpFiIFzYmgNePzhgMD1Hx1Ri+WJXE+dnV3zxEhFbhPntN8hyVhO+ YApkrGM/3P0pO9RNX17uPevEUtFfgZXJx7mv5hwmB5nTzYhEMXnui7AqJxuFQpiNxbwv yOPv429hVNsGXGUeB6dYI+pge5CaHCZEpOEsdtUUeLuwodIH8TSfUHc3XrWSysEsbtYm MssriezgZg1f9wDqm0WxML7wFWN7/pwljLYwHcgH0C16KNJhRjx+thFpkGsTvEfKOFio 0KJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=a07lwbeT8OsqzI3fLFmZw1D6PcFA3akFmeB31GRurwo=; b=P1d/TH4dIhDwuWjr6sT467W2Wbcph4p5jY1FnZVZ9OGItKv3FinJENM0fkJUdReK7T 7qcgw272Dta2LvBAtoTlLRsHhgswAm/lsXdY8bD7Hp+lpMlwGKBkc84l/CSLkCBINApF i2KGqYEOVTmI82F2nNopHPLme4sbRh/rY5NbDoNh1wfe0RDaWwh/qltC0GpP9fbH5Ilx N4894GqBjw/js4JEqqlaPUlE0A0VKm2drEqixVhkOp82jiJxNsHZ9qTfBuHXKiwCffuf ZIfMqDVoEte3TX5+lMAQ1k3VHtZEwQkOyHbcWn/zCaC69qRbrI6byvTwY0FGQGjVhz3V lhJg== X-Gm-Message-State: AD7BkJJo4NndrDBV34KXg4s9Sc4LXUtj3fES1FJImFAy9+SlfqRqNCu1Z8O6stcXvOtbDsQP X-Received: by 10.194.205.8 with SMTP id lc8mr18130267wjc.177.1456817856415; Mon, 29 Feb 2016 23:37:36 -0800 (PST) Received: from xps13.localnet (180.20.90.92.rev.sfr.net. [92.90.20.180]) by smtp.gmail.com with ESMTPSA id s66sm20011444wmb.6.2016.02.29.23.37.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Feb 2016 23:37:35 -0800 (PST) From: Thomas Monjalon To: Wang Xiao W Date: Tue, 01 Mar 2016 08:35:41 +0100 Message-ID: <1785217.K8F1c8amTK@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1456810601-7419-2-git-send-email-xiao.w.wang@intel.com> References: <1454557129-12825-2-git-send-email-xiao.w.wang@intel.com> <1456810601-7419-1-git-send-email-xiao.w.wang@intel.com> <1456810601-7419-2-git-send-email-xiao.w.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 07:37:36 -0000 2016-03-01 13:36, Wang Xiao W: > +static int > +fm10k_check_ftag(struct rte_devargs *devargs) > +{ > + if (devargs == NULL) > + return 0; > + > + if (strstr(devargs->args, "enable_ftag=1") == NULL) > + return 0; > + > + return 1; > +} With strstr(), chenable_ftag=12 will work :) Please check how to use kvargs.