Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[201911] Fix the error message for Tx Drop happening when netdev link is down #5550

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Oct 6, 2020

Why/How I did:
The error message is updated to provide correct information
of Netdevice link being down for Tx Drop
Taken the change from BRCM SAI 4.2.1.3 (6.5.19 hsdk) (https://github.com/Azure/sonic-buildimage/pull/5532/files#diff-9787d8debde44bb0dd3ce502443bf25cR5362)

The error message is updated to provide correct information
of Netdevice link being down.

Signed-off-by: Abhishek Dosi <[email protected]>
@abdosi abdosi requested review from judyjoseph and lguohan October 6, 2020 06:28
@@ -5279,7 +5279,7 @@ bkn_tx(struct sk_buff *skb, struct net_device *dev)
}

if (!netif_carrier_ok(dev)) {
DBG_WARN(("Tx drop: Invalid RCPU encapsulation\n"));
DBG_WARN(("Tx drop: Netif link is down.\n"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there way to get the device name in the log?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be print ifalias or name field?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev->name looks ok. But as a general comment, most of the debugs in this file don't have device name printed, may be to suggest brcm to improve debugs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prsunny and @judyjoseph Sure, will ask Broadcom to enhance debug messages. For now since this change same as what is in BRCM-SAI 4.2 will keep same so to avoid local changes.

@abdosi abdosi merged commit 7db8cb0 into sonic-net:201911 Oct 6, 2020
@abdosi abdosi deleted the bcm_knet branch October 6, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants