From: Vladimir Sokolovsky Date: Fri, 23 Mar 2012 21:30:07 +0000 (+0200) Subject: compat: backport real_num_rx_queues X-Git-Tag: compat-2012-07-02~16 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=db65ff0f0c792ebdebb688fab2b73bd3933da7b9;p=~emulex%2Ftmp%2Fcompat%2F.git compat: backport real_num_rx_queues [linux-2.6] (master)$ \ git describe --contains 62fe0b40abb3484413800edaef9b087a20059acf v2.6.37-rc1~147^2~340 Signed-off-by: Vladimir Sokolovsky --- diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h index c19e781..e097ee3 100644 --- a/include/linux/compat-2.6.37.h +++ b/include/linux/compat-2.6.37.h @@ -10,6 +10,25 @@ #define SDIO_CLASS_BT_AMP 0x09 /* Type-A Bluetooth AMP interface */ +#define VLAN_N_VID 4096 + +/* + * netif_set_real_num_rx_queues - set actual number of RX queues used + * @dev: Network device + * @rxq: Actual number of RX queues + * + * This function actully sets the real_num_rx_queues field in struct + * net_device. Since real_num_rx_queues field is not present in net_device + * structure in 2.6.37 kernel making this function to set that field is not + * possible. Hence adding this function to avoid changes in driver source + * code and making this function to always return success. + */ +static inline int netif_set_real_num_rx_queues(struct net_device *dev, + unsigned int rxq) +{ + return 0; +} + extern struct kobj_ns_type_operations net_ns_type_operations; /* mask skb_checksum_none_assert as RHEL6 backports this */