Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files26
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Makefile
- bnxt.c
- bnxt.h
- bnxt_coredump.h
- bnxt_dcb.c
- bnxt_dcb.h
- bnxt_debugfs.c
- bnxt_debugfs.h
- bnxt_devlink.c
- bnxt_devlink.h
- bnxt_dim.c
- bnxt_ethtool.c
- bnxt_ethtool.h
- bnxt_fw_hdr.h
- bnxt_hsi.h
- bnxt_nvm_defs.h
- bnxt_sriov.c
- bnxt_sriov.h
- bnxt_tc.c
- bnxt_tc.h
- bnxt_ulp.c
- bnxt_ulp.h
- bnxt_vfr.c
- bnxt_vfr.h
- bnxt_xdp.c
- bnxt_xdp.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/net/ethernet/broadcom/bnxt/bnxt_dim.c
C · 938 bytes/* Broadcom NetXtreme-C/E network driver.
*
* Copyright (c) 2017-2018 Broadcom Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*/
#include <linux/net_dim.h>
#include "bnxt_hsi.h"
#include "bnxt.h"
void bnxt_dim_work(struct work_struct *work)
{
struct net_dim *dim = container_of(work, struct net_dim,
work);
struct bnxt_cp_ring_info *cpr = container_of(dim,
struct bnxt_cp_ring_info,
dim);
struct bnxt_napi *bnapi = container_of(cpr,
struct bnxt_napi,
cp_ring);
struct net_dim_cq_moder cur_moder =
net_dim_get_rx_moderation(dim->mode, dim->profile_ix);
cpr->rx_ring_coal.coal_ticks = cur_moder.usec;
cpr->rx_ring_coal.coal_bufs = cur_moder.pkts;
bnxt_hwrm_set_ring_coal(bnapi->bp, bnapi);
dim->state = NET_DIM_START_MEASURE;
}