From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 549041AEF0 for ; Fri, 31 Aug 2018 17:13:26 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id 7-v6so642985pgf.2 for ; Fri, 31 Aug 2018 08:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VFXBPNFjbUGoFACFImd4i82BqvJa9QJ9o/alC2e3MWY=; b=V92V0NmkX9J4SgJvNT5V4IeKz2ce5auA0Vs949gtgYQGh+jtFT1ycj4E/N53ihZmgn XKabeI1SQuz0VMn4QlbqI878TwfNyPzWO/xeUSTQirLgAaojf0D9cfM54BdQUJHtidH4 yq3OzCKD1GuKEbn6Rk8C81vIiSky+/cZ2Mak0TeBKDFalUM1CnzCogLdQ3gaUaBfrUOa HPvaRO2xxDNG2O/0cc9nhBMm0j3yoHylI5kws6YR9RC7QoB1FFC/TkWkOAX0pbouQfu/ rjOQxUY0t0shWuWobHMRODYpAdzykRE3h04YDIbooCEX3h3WNdtb/hM5FVQdEDa9WNoE No8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VFXBPNFjbUGoFACFImd4i82BqvJa9QJ9o/alC2e3MWY=; b=jMJ2rgyns8piHzzJAPa0ncNocMLCgIS89mn8Gv07OQZtnz2bwo385njb1NuhjTLyDa D36EYGOfH/z8QhgWNRp5Yn6a8juzmcXw4h4v0H6rMMgccQSD414e90hiI91kk+EjCiPq tLVeiIpom8uo9Vx9odfsUIuNGQFnFVIcX1PAomvcky1/6vzRepPrLsbIWRZ408y3u5qn l7/fTVVb+g5OSOxz69pFyTs3jRMmNoJ1Y34DV+4rHZVPhT5UwyGlWOCCPXna3wA1n4pq dAutTPH4teWtEExnlfQ7D9fkg81VbdjluAgR2IW1DL27iBht4/DBW2+2kPExR6W5/iG3 yblA== X-Gm-Message-State: APzg51BdtJuapUYZNM7mbB0/nmh061164IATDcQd7rrheKPSROAldNgQ l1nRQl47TyHrtsCBuXjIBDKOTg== X-Google-Smtp-Source: ANB0VdabI/lfSTJyOuEBMAZ3i6t1fgAEHC8kvGyj8DQtkgLNJkL8JK3M5skpW+U/gTFhkTszH8Qh1w== X-Received: by 2002:a63:28c7:: with SMTP id o190-v6mr14802928pgo.84.1535728405512; Fri, 31 Aug 2018 08:13:25 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b126-v6sm14085492pga.49.2018.08.31.08.13.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 08:13:25 -0700 (PDT) Date: Fri, 31 Aug 2018 08:13:23 -0700 From: Stephen Hemminger To: =?UTF-8?B?R2HDq3Rhbg==?= Rivet Cc: dev@dpdk.org, Stephen Hemminger Message-ID: <20180831081323.3925e3ad@xeon-e3> In-Reply-To: <20180831082547.s3xm3tb7keruam6m@bidouze.vm.6wind.com> References: <20180830223512.21297-1-stephen@networkplumber.org> <20180830223512.21297-5-stephen@networkplumber.org> <20180831082547.s3xm3tb7keruam6m@bidouze.vm.6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH 4/5] net/netvsc: implement link state change callback X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 15:13:26 -0000 On Fri, 31 Aug 2018 10:25:47 +0200 Ga=C3=ABtan Rivet wrote: > Hi Stephen, >=20 > On Thu, Aug 30, 2018 at 03:35:11PM -0700, Stephen Hemminger wrote: > > From: Stephen Hemminger > >=20 > > Implement callback functionality on link state changes. > > This is not really driven off of interrupt file descriptor like most ot= her > > PMD's. Instead, it happens when a link state change message arrives > > in the common ring buffer. > > =20 >=20 > Does this mean that the lsc event will be processed in a dataplane > thread? Looking at the _rte_eth_dev_callback_process() call, it seems > so. >=20 > Shouldn't this be executed in the context of the eal-intr-thread > instead? This thread is marked control and should be configured with the > proper afinity, unless dataplane threads. >=20 > Maybe I missed something, it's just to double-check that this will > behave nicely with applications relying on the eal-intr-thread afinity. >=20 > --=20 > Ga=C3=ABtan Rivet > 6WIND There is no EAL API to take the event and propogate it over to the eal inte= rrupt thread. The interrupt thread is buried in the internals of EAL.