Commit 534f6bec authored by herlesupreeth's avatar herlesupreeth

NASMESH: support for kernel version >= 5.6.0

parent 476b1a93
...@@ -315,8 +315,13 @@ void oai_nw_drv_change_rx_flags(struct net_device *dev, int flags) ...@@ -315,8 +315,13 @@ void oai_nw_drv_change_rx_flags(struct net_device *dev, int flags)
priv->rx_flags ^= flags; priv->rx_flags ^= flags;
} }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void oai_nw_drv_tx_timeout(struct net_device *dev) void nas_tx_timeout(struct net_device *dev, unsigned int txqueue)
#else
//---------------------------------------------------------------------------
void nas_tx_timeout(struct net_device *dev)
#endif
{ {
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Transmitter timeout, serious problems. // Transmitter timeout, serious problems.
......
...@@ -296,8 +296,13 @@ int nas_change_mtu(struct net_device *dev, int mtu) ...@@ -296,8 +296,13 @@ int nas_change_mtu(struct net_device *dev, int mtu)
return 0; return 0;
} }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
//---------------------------------------------------------------------------
void nas_tx_timeout(struct net_device *dev, unsigned int txqueue)
#else
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void nas_tx_timeout(struct net_device *dev) void nas_tx_timeout(struct net_device *dev)
#endif
{ {
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Transmitter timeout, serious problems. // Transmitter timeout, serious problems.
......
...@@ -301,8 +301,14 @@ void ue_ip_change_rx_flags(struct net_device *dev_pP, int flagsP) { ...@@ -301,8 +301,14 @@ void ue_ip_change_rx_flags(struct net_device *dev_pP, int flagsP) {
priv_p->rx_flags ^= flagsP; priv_p->rx_flags ^= flagsP;
} }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void ue_ip_tx_timeout(struct net_device *dev_pP) { void ue_ip_tx_timeout(struct net_device *dev_pP, unsigned int txqueue)
#else
//---------------------------------------------------------------------------
void ue_ip_tx_timeout(struct net_device *dev_pP)
#endif
{
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Transmitter timeout, serious problems. // Transmitter timeout, serious problems.
ue_ip_priv_t *priv_p = netdev_priv(dev_pP); ue_ip_priv_t *priv_p = netdev_priv(dev_pP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment