From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v7 2/2] net/ixgbe: add callback to user app on VF to PF mbox msg Date: Sat, 08 Oct 2016 00:44:19 +0200 Message-ID: <2780407.hr2q20cLcS@xps13> References: <1475772490-10491-1-git-send-email-bernard.iremonger@intel.com> <1475858784-5303-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 To: Bernard Iremonger Return-path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id C6BB1475E for ; Sat, 8 Oct 2016 00:44:21 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id f193so56691959wmg.0 for ; Fri, 07 Oct 2016 15:44:21 -0700 (PDT) In-Reply-To: <1475858784-5303-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-07 17:46, Bernard Iremonger: > +struct rte_pmd_ixgbe_mb_event_param { > + uint16_t vfid; /**< Virtual Function number */ > + uint16_t msg_type; /**< message type */ > + uint16_t retval; /**< return value */ > + void *userdata; /**< pointer to user data */ Generally speaking, the user data is a pointer passed by the application when registering the callback and must be untouched. It should be the name of the parameter that you are overriding with this structure. So this "userdata" pointer could probably be better defined. By the way, it is far from trivial to understand how to write the callback. I think it deserves more explanations.