From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/net/ethernet/sun/ldmvsw.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel/drivers/net/ethernet/sun/ldmvsw.c b/kernel/drivers/net/ethernet/sun/ldmvsw.c
index 644e42c..934a4b5 100644
--- a/kernel/drivers/net/ethernet/sun/ldmvsw.c
+++ b/kernel/drivers/net/ethernet/sun/ldmvsw.c
@@ -101,8 +101,7 @@
}
static u16 vsw_select_queue(struct net_device *dev, struct sk_buff *skb,
- struct net_device *sb_dev,
- select_queue_fallback_t fallback)
+ struct net_device *sb_dev)
{
struct vnet_port *port = netdev_priv(dev);
@@ -291,6 +290,9 @@
hp = mdesc_grab();
+ if (!hp)
+ return -ENODEV;
+
rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len);
err = -ENODEV;
if (!rmac) {
--
Gitblit v1.6.2