Skip to content

Commit 9d442fd

Browse files
committed
Merge: net/enic: add fixes from v6.16
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7225 JIRA: https://issues.redhat.com/browse/RHEL-108264 * 8fa18a3 net/enic: Allow at least 8 RQs to always be used * aaf2b24 enic: fix incorrect MTU comparison in enic_change_mtu() Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com> Approved-by: John Meneghini <jmeneghi@redhat.com> Approved-by: José Ignacio Tornos Martínez <jtornosm@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Jarod Wilson <jarod@redhat.com>
2 parents b1a1bd1 + aec5f11 commit 9d442fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

drivers/net/ethernet/cisco/enic/enic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#define ENIC_WQ_MAX 256
2828
#define ENIC_RQ_MAX 256
29+
#define ENIC_RQ_MIN_DEFAULT 8
2930

3031
#define ENIC_WQ_NAPI_BUDGET 256
3132

drivers/net/ethernet/cisco/enic/enic_main.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,10 +1863,10 @@ static int enic_change_mtu(struct net_device *netdev, int new_mtu)
18631863
if (enic_is_dynamic(enic) || enic_is_sriov_vf(enic))
18641864
return -EOPNOTSUPP;
18651865

1866-
if (netdev->mtu > enic->port_mtu)
1866+
if (new_mtu > enic->port_mtu)
18671867
netdev_warn(netdev,
18681868
"interface MTU (%d) set higher than port MTU (%d)\n",
1869-
netdev->mtu, enic->port_mtu);
1869+
new_mtu, enic->port_mtu);
18701870

18711871
return _enic_change_mtu(netdev, new_mtu);
18721872
}
@@ -2295,7 +2295,8 @@ static int enic_adjust_resources(struct enic *enic)
22952295
* used based on which resource is the most constrained
22962296
*/
22972297
wq_avail = min(enic->wq_avail, ENIC_WQ_MAX);
2298-
rq_default = netif_get_num_default_rss_queues();
2298+
rq_default = max(netif_get_num_default_rss_queues(),
2299+
ENIC_RQ_MIN_DEFAULT);
22992300
rq_avail = min3(enic->rq_avail, ENIC_RQ_MAX, rq_default);
23002301
max_queues = min(enic->cq_avail,
23012302
enic->intr_avail - ENIC_MSIX_RESERVED_INTR);

0 commit comments

Comments
 (0)