From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 2/3] app/testpmd: enable RSS support for i40e Date: Wed, 27 Aug 2014 17:36:39 +0200 Message-ID: <1982600.IVFo8mPmpM@xps13> References: <1405651521-14545-1-git-send-email-helin.zhang@intel.com> <1405651521-14545-3-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Helin Zhang Return-path: In-Reply-To: <1405651521-14545-3-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2014-07-18 10:45, Helin Zhang: > i40e can support RSS no matter if SR-IOV is enabled or not, while > ixgbe/igb can not support RSS if it is SR-IOV. Code changes are > needed to support i40e RSS if SR-IOV is enabled. [...] > - /* In SR-IOV mode, RSS mode is not available */ > - if (port->dcb_flag == 0 && port->dev_info.max_vfs == 0) { > + /** > + * For i40e, RSS is always available. > + * For non-i40e, RSS is available in non-SRIOV mode, > + * according to datasheet. > + */ > + if (port->dcb_flag == 0 && > + ((port->dev_info.max_vfs == 0) || > + (!strcmp(port->dev_info.driver_name, > + "rte_i40e_pmd")) || > + (!strcmp(port->dev_info.driver_name, > + "rte_i40evf_pmd")))) { This kind of knowledge should be coded in the drivers. Application writer doesn't have to read the datasheet to use the drivers. I think returning an error in the driver could be enough to handle it at application level. Thanks -- Thomas