diff options
author | jbaron@akamai.com <jbaron@akamai.com> | 2014-10-09 23:13:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-10 15:09:47 -0400 |
commit | 4c9799359bc691becc888f97a4b5bb035cb206f9 (patch) | |
tree | 2546c25adab8cc6dd72e130c3837b99f9fd73703 | |
parent | 2403077d47991a8385789779ee5fc90b003f9fbe (diff) |
macvlan: pass 'bool' type to macvlan_count_rx()
Pass last argument to macvlan_count_rx() as the correct bool type.
Signed-off-by: Jason Baron <jbaron@akamai.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/macvlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 38b4fae61f04..c7c58aff1ff7 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -260,7 +260,7 @@ static void macvlan_broadcast(struct sk_buff *skb, | |||
260 | mode == MACVLAN_MODE_BRIDGE) ?: | 260 | mode == MACVLAN_MODE_BRIDGE) ?: |
261 | netif_rx_ni(nskb); | 261 | netif_rx_ni(nskb); |
262 | macvlan_count_rx(vlan, skb->len + ETH_HLEN, | 262 | macvlan_count_rx(vlan, skb->len + ETH_HLEN, |
263 | err == NET_RX_SUCCESS, 1); | 263 | err == NET_RX_SUCCESS, true); |
264 | } | 264 | } |
265 | } | 265 | } |
266 | } | 266 | } |
@@ -379,7 +379,7 @@ static void macvlan_forward_source_one(struct sk_buff *skb, | |||
379 | nskb->pkt_type = PACKET_HOST; | 379 | nskb->pkt_type = PACKET_HOST; |
380 | 380 | ||
381 | ret = netif_rx(nskb); | 381 | ret = netif_rx(nskb); |
382 | macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, 0); | 382 | macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, false); |
383 | } | 383 | } |
384 | 384 | ||
385 | static void macvlan_forward_source(struct sk_buff *skb, | 385 | static void macvlan_forward_source(struct sk_buff *skb, |
@@ -457,7 +457,7 @@ static rx_handler_result_t macvlan_handle_frame(struct sk_buff **pskb) | |||
457 | ret = netif_rx(skb); | 457 | ret = netif_rx(skb); |
458 | 458 | ||
459 | out: | 459 | out: |
460 | macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, 0); | 460 | macvlan_count_rx(vlan, len, ret == NET_RX_SUCCESS, false); |
461 | return RX_HANDLER_CONSUMED; | 461 | return RX_HANDLER_CONSUMED; |
462 | } | 462 | } |
463 | 463 | ||