From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Smith Subject: [PATCH 1/6] C/R: Add checkpoint and collect hooks to net_device_ops Date: Thu, 25 Feb 2010 12:43:10 -0800 Message-ID: <1267130595-23637-2-git-send-email-danms@us.ibm.com> References: <1267130595-23637-1-git-send-email-danms@us.ibm.com> Cc: benjamin.thery@bull.net, den@openvz.org, ebiederm@xmission.com, davem@davemloft.net, netdev@vger.kernel.org To: containers@lists.osdl.org Return-path: Received: from stein.danplanet.com ([71.245.107.83]:38787 "EHLO stein.danplanet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933709Ab0BYUpb (ORCPT ); Thu, 25 Feb 2010 15:45:31 -0500 In-Reply-To: <1267130595-23637-1-git-send-email-danms@us.ibm.com> Sender: netdev-owner@vger.kernel.org List-ID: These will be implemented per-driver by those that support such operations. Signed-off-by: Dan Smith --- include/linux/netdevice.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a3fccc8..415a791 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -673,6 +673,12 @@ struct net_device_ops { int (*ndo_fcoe_get_wwn)(struct net_device *dev, u64 *wwn, int type); #endif +#ifdef CONFIG_CHECKPOINT + int (*ndo_collect)(struct ckpt_ctx *ctx, + struct net_device *dev); + int (*ndo_checkpoint)(struct ckpt_ctx *ctx, + struct net_device *dev); +#endif }; /* -- 1.6.2.5