From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 2/2] testpmd: add mode 4 support v6 Date: Wed, 26 Nov 2014 13:31:11 +0100 Message-ID: <3141494.bx8cpoIdIi@xps13> References: <1417000643-26885-1-git-send-email-michalx.k.jastrzebski@intel.com> <1417000643-26885-3-git-send-email-michalx.k.jastrzebski@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Michal Jastrzebski Return-path: In-Reply-To: <1417000643-26885-3-git-send-email-michalx.k.jastrzebski-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-11-26 11:17, Michal Jastrzebski: > From: Pawel Wodkowski > --- a/app/test-pmd/csumonly.c > +++ b/app/test-pmd/csumonly.c > @@ -254,8 +254,17 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) > */ > nb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst, > nb_pkt_per_burst); > +#ifndef RTE_LIBRTE_PMD_BOND > if (unlikely(nb_rx == 0)) > return; > +#else > + if (unlikely(nb_rx == 0 && (fs->forward_timeout == 0 || > + fs->next_forward_time > rte_rdtsc()))) > + return; > + > + if (fs->forward_timeout != 0) > + fs->next_forward_time = rte_rdtsc() + fs->forward_timeout; > +#endif I don't understand why you need to make such change for bonding, and there is no comment to explain. Bonding should be a PMD like any other and shouldn't require such change. I don't know mode 4 but it seems there is a design problem here. -- Thomas