From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 2/2] net/ixgbe: add callback to user app on VF to PF mbox msg Date: Fri, 07 Oct 2016 14:14:02 +0200 Message-ID: <1717577.NEkDseq0hE@xps13> References: <1475753191-17391-1-git-send-email-bernard.iremonger@intel.com> <1475772490-10491-3-git-send-email-bernard.iremonger@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, rahul.r.shah@intel.com, wenzhuo.lu@intel.com, az5157@att.com, jerin.jacob@caviumnetworks.com To: Bernard Iremonger Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id DDD544B79 for ; Fri, 7 Oct 2016 14:14:06 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id k125so28859848wma.1 for ; Fri, 07 Oct 2016 05:14:06 -0700 (PDT) In-Reply-To: <1475772490-10491-3-git-send-email-bernard.iremonger@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-10-06 17:48, Bernard Iremonger: > call _rte_eth_dev_callback_process from ixgbe_rcv_msg_from_vf function. > > The callback asks the user application if it is allowed to perform > the function. > If the cb_param.retval is RTE_PMD_IXGBE_MB_EVENT_PROCEED then continue, > if 0, do nothing and send ACK to VF > if > 1, do nothing and send NAK to VF. [...] > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -3559,7 +3559,7 @@ ixgbe_dev_interrupt_delayed_handler(void *param) > ixgbe_dev_link_update(dev, 0); > intr->flags &= ~IXGBE_FLAG_NEED_LINK_UPDATE; > ixgbe_dev_link_status_print(dev); > - _rte_eth_dev_callback_process(dev, RTE_ETH_EVENT_INTR_LSC); > + _rte_eth_dev_callback_process(dev, RTE_ETH_EVENT_INTR_LSC, NULL); > } > > PMD_DRV_LOG(DEBUG, "enable intr in delayed handler S[%08x]", eicr); > @@ -7525,7 +7525,7 @@ static void ixgbevf_mbx_process(struct rte_eth_dev *dev) > > /* PF reset VF event */ > if (in_msg == IXGBE_PF_CONTROL_MSG) > - _rte_eth_dev_callback_process(dev, RTE_ETH_EVENT_INTR_RESET); > + _rte_eth_dev_callback_process(dev, RTE_ETH_EVENT_INTR_RESET, NULL); > } This piece should go into the patch 1.