Commit 6535db56 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Antonio Quartulli

batman-adv: Remove unused parameter recv_if of batadv_interface_rx

Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: default avatarAntonio Quartulli <a@unstable.cc>
parent c047c3b1
...@@ -912,7 +912,7 @@ int batadv_recv_unicast_packet(struct sk_buff *skb, ...@@ -912,7 +912,7 @@ int batadv_recv_unicast_packet(struct sk_buff *skb,
hdr_size)) hdr_size))
goto rx_success; goto rx_success;
batadv_interface_rx(recv_if->soft_iface, skb, recv_if, hdr_size, batadv_interface_rx(recv_if->soft_iface, skb, hdr_size,
orig_node); orig_node);
rx_success: rx_success:
...@@ -1122,8 +1122,7 @@ int batadv_recv_bcast_packet(struct sk_buff *skb, ...@@ -1122,8 +1122,7 @@ int batadv_recv_bcast_packet(struct sk_buff *skb,
goto rx_success; goto rx_success;
/* broadcast for me */ /* broadcast for me */
batadv_interface_rx(recv_if->soft_iface, skb, recv_if, hdr_size, batadv_interface_rx(recv_if->soft_iface, skb, hdr_size, orig_node);
orig_node);
rx_success: rx_success:
ret = NET_RX_SUCCESS; ret = NET_RX_SUCCESS;
......
...@@ -385,7 +385,6 @@ static int batadv_interface_tx(struct sk_buff *skb, ...@@ -385,7 +385,6 @@ static int batadv_interface_tx(struct sk_buff *skb,
* batadv_interface_rx - receive ethernet frame on local batman-adv interface * batadv_interface_rx - receive ethernet frame on local batman-adv interface
* @soft_iface: local interface which will receive the ethernet frame * @soft_iface: local interface which will receive the ethernet frame
* @skb: ethernet frame for @soft_iface * @skb: ethernet frame for @soft_iface
* @recv_if: interface on which the batman-adv packet was received
* @hdr_size: size of already parsed batman-adv header * @hdr_size: size of already parsed batman-adv header
* @orig_node: originator from which the batman-adv packet was sent * @orig_node: originator from which the batman-adv packet was sent
* *
...@@ -400,8 +399,8 @@ static int batadv_interface_tx(struct sk_buff *skb, ...@@ -400,8 +399,8 @@ static int batadv_interface_tx(struct sk_buff *skb,
* isolated clients. * isolated clients.
*/ */
void batadv_interface_rx(struct net_device *soft_iface, void batadv_interface_rx(struct net_device *soft_iface,
struct sk_buff *skb, struct batadv_hard_iface *recv_if, struct sk_buff *skb, int hdr_size,
int hdr_size, struct batadv_orig_node *orig_node) struct batadv_orig_node *orig_node)
{ {
struct batadv_bcast_packet *batadv_bcast_packet; struct batadv_bcast_packet *batadv_bcast_packet;
struct batadv_priv *bat_priv = netdev_priv(soft_iface); struct batadv_priv *bat_priv = netdev_priv(soft_iface);
......
...@@ -27,8 +27,8 @@ struct sk_buff; ...@@ -27,8 +27,8 @@ struct sk_buff;
int batadv_skb_head_push(struct sk_buff *skb, unsigned int len); int batadv_skb_head_push(struct sk_buff *skb, unsigned int len);
void batadv_interface_rx(struct net_device *soft_iface, void batadv_interface_rx(struct net_device *soft_iface,
struct sk_buff *skb, struct batadv_hard_iface *recv_if, struct sk_buff *skb, int hdr_size,
int hdr_size, struct batadv_orig_node *orig_node); struct batadv_orig_node *orig_node);
struct net_device *batadv_softif_create(const char *name); struct net_device *batadv_softif_create(const char *name);
void batadv_softif_destroy_sysfs(struct net_device *soft_iface); void batadv_softif_destroy_sysfs(struct net_device *soft_iface);
int batadv_softif_is_valid(const struct net_device *net_dev); int batadv_softif_is_valid(const struct net_device *net_dev);
......
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