Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.17 32 lines 946 B view raw
1/* Broadcom NetXtreme-C/E network driver. 2 * 3 * Copyright (c) 2017-2018 Broadcom Limited 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation. 8 */ 9 10#include <linux/net_dim.h> 11#include "bnxt_hsi.h" 12#include "bnxt.h" 13 14void bnxt_dim_work(struct work_struct *work) 15{ 16 struct net_dim *dim = container_of(work, struct net_dim, 17 work); 18 struct bnxt_cp_ring_info *cpr = container_of(dim, 19 struct bnxt_cp_ring_info, 20 dim); 21 struct bnxt_napi *bnapi = container_of(cpr, 22 struct bnxt_napi, 23 cp_ring); 24 struct net_dim_cq_moder cur_profile = net_dim_get_profile(dim->mode, 25 dim->profile_ix); 26 27 cpr->rx_ring_coal.coal_ticks = cur_profile.usec; 28 cpr->rx_ring_coal.coal_bufs = cur_profile.pkts; 29 30 bnxt_hwrm_set_ring_coal(bnapi->bp, bnapi); 31 dim->state = NET_DIM_START_MEASURE; 32}