From: Shannon Nelson <shannon.nelson@oracle.com>
To: netdev@vger.kernel.org, davem@davemloft.net
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org,
Shannon Nelson <shannon.nelson@oracle.com>
Subject: [PATCH v2 net-next 4/5] sunvnet: count multicast packets
Date: Tue, 14 Mar 2017 10:24:42 -0700 [thread overview]
Message-ID: <1489512283-422140-5-git-send-email-shannon.nelson@oracle.com> (raw)
In-Reply-To: <1489512283-422140-1-git-send-email-shannon.nelson@oracle.com>
Make sure multicast packets get counted in the device.
Orabug: 25190537
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
---
drivers/net/ethernet/sun/sunvnet_common.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/sun/sunvnet_common.c b/drivers/net/ethernet/sun/sunvnet_common.c
index 5e1d016..0c35a9a 100644
--- a/drivers/net/ethernet/sun/sunvnet_common.c
+++ b/drivers/net/ethernet/sun/sunvnet_common.c
@@ -409,6 +409,8 @@ static int vnet_rx_one(struct vnet_port *port, struct vio_net_desc *desc)
skb->ip_summed = port->switch_port ? CHECKSUM_NONE : CHECKSUM_PARTIAL;
+ if (unlikely(is_multicast_ether_addr(eth_hdr(skb)->h_dest)))
+ dev->stats.multicast++;
dev->stats.rx_packets++;
dev->stats.rx_bytes += len;
port->stats.rx_packets++;
--
1.7.1
next prev parent reply other threads:[~2017-03-14 17:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 17:24 [PATCH v2 net-next 0/5] sunvnet: better connection management Shannon Nelson
2017-03-14 17:24 ` [PATCH v2 net-next 1/5] ldmvsw: better use of link up and down on ldom vswitch Shannon Nelson
2017-03-14 17:24 ` [PATCH v2 net-next 2/5] sunvnet: add stats to track ldom to ldom packets and bytes Shannon Nelson
2017-03-14 17:24 ` [PATCH v2 net-next 3/5] sunvnet: track port queues correctly Shannon Nelson
2017-03-14 17:24 ` Shannon Nelson [this message]
2017-03-15 8:50 ` [PATCH v2 net-next 4/5] sunvnet: count multicast packets David Laight
2017-03-16 0:17 ` Shannon Nelson
2017-03-16 12:12 ` David Laight
2017-03-16 18:30 ` David Miller
2017-03-14 17:24 ` [PATCH v2 net-next 5/5] sunvnet: xoff not needed when removing port link Shannon Nelson
2017-03-17 3:30 ` [PATCH v2 net-next 0/5] sunvnet: better connection management David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1489512283-422140-5-git-send-email-shannon.nelson@oracle.com \
--to=shannon.nelson@oracle.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).