/* vxge_ethtool_setpause_data - set/reset pause frame generation. @dev : device pointer. @ep : pointer to the structure with pause parameters given by ethtool. Description: It can be used to set or reset Pause frame generation or reception support of the NIC. Return value: int, returns 0 on Success  */
static int vxge_ethtool_setpause_data(struct net_device *dev, struct ethtool_pauseparam *ep)
/* vxge_ethtool_setpause_data - set/reset pause frame generation. @dev : device pointer. @ep : pointer to the structure with pause parameters given by ethtool. Description: It can be used to set or reset Pause frame generation or reception support of the NIC. Return value: int, returns 0 on Success  */
static int vxge_ethtool_setpause_data(struct net_device *dev, struct ethtool_pauseparam *ep)
{
	struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev);
	struct __vxge_hw_device  *hldev = (struct __vxge_hw_device  *)
			pci_get_drvdata(vdev->pdev);
	vxge_hw_device_setpause_data(hldev, 0, ep->tx_pause, ep->rx_pause);
	vdev->config.tx_pause_enable = ep->tx_pause;
	vdev->config.rx_pause_enable = ep->rx_pause;
	return 0;
}