630e7df8c5
* refs/heads/tmp-3970bc6: UPSTREAM: Revert "net: af_key: add check for pfkey_broadcast in function pfkey_process" FROMGIT: arm64: fix oops in concurrently setting insn_emulation sysctls ANDROID: abi_gki_aarch64_qcom: Add vmemdup_user to qcom symbol list ANDROID: GKI: update Sony KMI symbol list UPSTREAM: mm: fix misplaced unlock_page in do_wp_page() BACKPORT: mm: do_wp_page() simplification UPSTREAM: mm/ksm: Remove reuse_ksm_page() BACKPORT: ALSA: pcm: Fix races among concurrent prealloc proc writes BACKPORT: ALSA: pcm: Fix races among concurrent prepare and hw_params/hw_free calls BACKPORT: ALSA: pcm: Fix races among concurrent read/write and buffer changes ANDROID: Fix up abi issue with struct snd_pcm_runtime BACKPORT: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls BACKPORT: nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs Linux 5.4.197 bpf: Enlarge offset check value to INT_MAX in bpf_skb_{load,store}_bytes NFSD: Fix possible sleep during nfsd4_release_lockowner() NFS: Memory allocation failures are not server fatal errors docs: submitting-patches: Fix crossref to 'The canonical patch format' tpm: ibmvtpm: Correct the return value in tpm_ibmvtpm_probe() tpm: Fix buffer access in tpm2_get_tpm_pt() HID: multitouch: Add support for Google Whiskers Touchpad raid5: introduce MD_BROKEN dm verity: set DM_TARGET_IMMUTABLE feature flag dm stats: add cond_resched when looping over entries dm crypt: make printing of the key constant-time dm integrity: fix error code in dm_integrity_ctr() zsmalloc: fix races between asynchronous zspage free and page migration crypto: ecrdsa - Fix incorrect use of vli_cmp netfilter: conntrack: re-fetch conntrack after insertion exec: Force single empty string when argv is empty drm/i915: Fix -Wstringop-overflow warning in call to intel_read_wm_latency() cfg80211: set custom regdomain after wiphy registration assoc_array: Fix BUG_ON during garbage collect drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers i2c: ismt: Provide a DMA buffer for Interrupt Cause Logging net: ftgmac100: Disable hardware checksum on AST2600 net: af_key: check encryption module availability consistency pinctrl: sunxi: fix f1c100s uart2 function ACPI: sysfs: Fix BERT error region memory mapping ACPI: sysfs: Make sparse happy about address space in use media: vim2m: initialize the media device earlier media: vim2m: Register video device after setting up internals secure_seq: use the 64 bits of the siphash for port offset calculation tcp: change source port randomizarion at connect() time Input: goodix - fix spurious key release events staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan() x86/pci/xen: Disable PCI/MSI[-X] masking for XEN_HVM guests lockdown: also lock down previous kgdb use Linux 5.4.196 afs: Fix afs_getattr() to refetch file status if callback break occurred i2c: mt7621: fix missing clk_disable_unprepare() on error in mtk_i2c_probe() x86/xen: Mark cpu_bringup_and_idle() as dead_end_function x86/xen: fix booting 32-bit pv guest Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE"" ARM: dts: imx7: Use audio_mclk_post_div instead audio_mclk_root_clk firmware_loader: use kernel credentials when reading firmware net: stmmac: disable Split Header (SPH) for Intel platforms block: return ELEVATOR_DISCARD_MERGE if possible Input: ili210x - fix reset timing net: atlantic: verify hw_head_ lies within TX buffer ring net: stmmac: fix missing pci_disable_device() on error in stmmac_pci_probe() ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one() selftests: add ping test with ping_group_range tuned mac80211: fix rx reordering with non explicit / psmp ack policy scsi: qla2xxx: Fix missed DMA unmap for aborted commands perf bench numa: Address compiler error on s390 gpio: mvebu/pwm: Refuse requests with inverted polarity gpio: gpio-vf610: do not touch other bits when set the target bit net: bridge: Clear offload_fwd_mark when passing frame up bridge interface. igb: skip phy status check where unavailable ARM: 9197/1: spectre-bhb: fix loop8 sequence for Thumb2 ARM: 9196/1: spectre-bhb: enable for Cortex-A15 net: af_key: add check for pfkey_broadcast in function pfkey_process net/mlx5e: Properly block LRO when XDP is enabled NFC: nci: fix sleep in atomic context bugs caused by nci_skb_alloc net/qla3xxx: Fix a test in ql_reset_work() clk: at91: generated: consider range when calculating best rate ice: fix possible under reporting of ethtool Tx and Rx statistics net: vmxnet3: fix possible NULL pointer dereference in vmxnet3_rq_cleanup() net: vmxnet3: fix possible use-after-free bugs in vmxnet3_rq_alloc_rx_buf() net/sched: act_pedit: sanitize shift argument before usage net: macb: Increment rx bd head after allocating skb and buffer ARM: dts: aspeed-g6: fix SPI1/SPI2 quad pin group ARM: dts: aspeed-g6: remove FWQSPID group in pinctrl dtsi dma-buf: fix use of DMA_BUF_SET_NAME_{A,B} in userspace drm/dp/mst: fix a possible memory leak in fetch_monitor_name() crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ KVM: x86/mmu: Update number of zapped pages even if page list is stable PCI/PM: Avoid putting Elo i2 PCIe Ports in D3cold Fix double fget() in vhost_net_set_backend() perf: Fix sys_perf_event_open() race against self ALSA: wavefront: Proper check of get_user() error SUNRPC: Ensure we flush any closed sockets before xs_xprt_free() SUNRPC: Don't call connect() more than once on a TCP socket SUNRPC: Prevent immediate close+reconnect SUNRPC: Clean up scheduling of autoclose mmc: core: Default to generic_cmd6_time as timeout in __mmc_switch() mmc: block: Use generic_cmd6_time when modifying INAND_CMD38_ARG_EXT_CSD mmc: core: Specify timeouts for BKOPS and CACHE_FLUSH for eMMC nilfs2: fix lockdep warnings during disk space reclamation nilfs2: fix lockdep warnings in page operations for btree nodes ARM: 9191/1: arm/stacktrace, kasan: Silence KASAN warnings in unwind_frame() platform/chrome: cros_ec_debugfs: detach log reader wq from devm drbd: remove usage of list iterator variable after loop MIPS: lantiq: check the return value of kzalloc() rtc: mc146818-lib: Fix the AltCentury for AMD platforms nvme-multipath: fix hang when disk goes live over reconnect ALSA: hda/realtek: Enable headset mic on Lenovo P360 crypto: x86/chacha20 - Avoid spurious jumps to other functions crypto: stm32 - fix reference leak in stm32_crc_remove Input: stmfts - fix reference leak in stmfts_input_open Input: add bounds checking to input_set_capability() um: Cleanup syscall_handler_t definition/cast, fix warning rtc: fix use-after-free on device removal x86/xen: Make the secondary CPU idle tasks reliable x86/xen: Make the boot CPU idle task reliable floppy: use a statically allocated error counter ANDROID: fix up abi issue with struct snd_pcm_runtime Linux 5.4.195 tty/serial: digicolor: fix possible null-ptr-deref in digicolor_uart_probe() ping: fix address binding wrt vrf arm[64]/memremap: don't abuse pfn_valid() to ensure presence of linear map net: phy: Fix race condition on link status change MIPS: fix build with gcc-12 drm/vmwgfx: Initialize drm_mode_fb_cmd2 cgroup/cpuset: Remove cpus_allowed/mems_allowed setup in cpuset_init_smp() i40e: i40e_main: fix a missing check on list iterator drm/nouveau/tegra: Stop using iommu_present() serial: 8250_mtk: Fix register address for XON/XOFF character serial: 8250_mtk: Fix UART_EFR register address slimbus: qcom: Fix IRQ check in qcom_slim_probe USB: serial: option: add Fibocom MA510 modem USB: serial: option: add Fibocom L610 modem USB: serial: qcserial: add support for Sierra Wireless EM7590 USB: serial: pl2303: add device id for HP LM930 Display usb: typec: tcpci: Don't skip cleanup in .remove() on error usb: cdc-wdm: fix reading stuck on device close tty: n_gsm: fix mux activation issues in gsm_config() tcp: resalt the secret every 10 seconds net: emaclite: Don't advertise 1000BASE-T and do auto negotiation s390: disable -Warray-bounds ASoC: ops: Validate input values in snd_soc_put_volsw_range() ASoC: max98090: Generate notifications on changes for custom control ASoC: max98090: Reject invalid values in custom control put() hwmon: (f71882fg) Fix negative temperature gfs2: Fix filesystem block deallocation for short writes net: sfc: ef10: fix memory leak in efx_ef10_mtd_probe() net/smc: non blocking recvmsg() return -EAGAIN when no data and signal_pending net/sched: act_pedit: really ensure the skb is writable s390/lcs: fix variable dereferenced before check s390/ctcm: fix potential memory leak s390/ctcm: fix variable dereferenced before check hwmon: (ltq-cputemp) restrict it to SOC_XWAY dim: initialize all struct fields mac80211_hwsim: call ieee80211_tx_prepare_skb under RCU protection netlink: do not reset transport header in netlink_recvmsg() drm/nouveau: Fix a potential theorical leak in nouveau_get_backlight_name() ipv4: drop dst in multicast routing path net: Fix features skip in for_each_netdev_feature() mac80211: Reset MBSSID parameters upon connection hwmon: (tmp401) Add OF device ID table batman-adv: Don't skb_split skbuffs with frag_list Linux 5.4.194 mm: userfaultfd: fix missing cache flush in mcopy_atomic_pte() and __mcopy_atomic() mm: hugetlb: fix missing cache flush in copy_huge_page_from_user() mm: fix missing cache flush for all tail pages of compound page Bluetooth: Fix the creation of hdev->name KVM: x86/svm: Account for family 17h event renumberings in amd_pmc_perf_hw_id x86: kprobes: Prohibit probing on instruction which has emulate prefix x86: xen: insn: Decode Xen and KVM emulate-prefix signature x86: xen: kvm: Gather the definition of emulate prefixes x86/asm: Allow to pass macros to __ASM_FORM() KVM: x86/pmu: Refactoring find_arch_event() to pmc_perf_hw_id() arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL can: grcan: only use the NAPI poll budget for RX can: grcan: grcan_probe(): fix broken system id check for errata workaround needs nfp: bpf: silence bitwise vs. logical OR warning drm/i915: Cast remain to unsigned long in eb_relocate_vma drm/amd/display/dc/gpio/gpio_service: Pass around correct dce_{version, environment} types block: drbd: drbd_nl: Make conversion to 'enum drbd_ret_code' explicit MIPS: Use address-of operator on section symbols ANDROID: GKI: update the abi .xml file Revert "tcp: ensure to use the most recently sent skb when filling the rate sample" Linux 5.4.193 mmc: rtsx: add 74 Clocks in power on flow PCI: aardvark: Fix reading MSI interrupt number PCI: aardvark: Clear all MSIs at setup dm: interlock pending dm_io and dm_wait_for_bios_completion dm: fix mempool NULL pointer race when completing IO tcp: make sure treq->af_specific is initialized ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock ALSA: pcm: Fix races among concurrent prealloc proc writes ALSA: pcm: Fix races among concurrent prepare and hw_params/hw_free calls ALSA: pcm: Fix races among concurrent read/write and buffer changes ALSA: pcm: Fix races among concurrent hw_params and hw_free calls mm: fix unexpected zeroed page mapping with zram swap block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern net: ipv6: ensure we call ipv6_mc_down() at most once KVM: LAPIC: Enable timer posted-interrupt only when mwait/hlt is advertised x86/kvm: Preserve BSP MSR_KVM_POLL_CONTROL across suspend/resume kvm: x86/cpuid: Only provide CPUID leaf 0xA if host has architectural PMU NFSv4: Don't invalidate inode attributes on delegation return drm/amdkfd: Use drm_priv to pass VM from KFD to amdgpu net: igmp: respect RCU rules in ip_mc_source() and ip_mc_msfilter() btrfs: always log symlinks in full mode smsc911x: allow using IRQ0 bnxt_en: Fix possible bnxt_open() failure caused by wrong RFS flag selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational net: emaclite: Add error handling for of_address_to_resource() net: stmmac: dwmac-sun8i: add missing of_node_put() in sun8i_dwmac_register_mdio_mux() net: ethernet: mediatek: add missing of_node_put() in mtk_sgmii_init() RDMA/siw: Fix a condition race issue in MPA request processing ASoC: dmaengine: Restore NULL prepare_slave_config() callback hwmon: (adt7470) Fix warning on module removal NFC: netlink: fix sleep in atomic bug when firmware download timeout nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs nfc: replace improper check device_is_registered() in netlink related functions can: grcan: use ofdev->dev when allocating DMA memory can: grcan: grcan_close(): fix deadlock s390/dasd: Fix read inconsistency for ESE DASD devices s390/dasd: Fix read for ESE with blksize < 4k s390/dasd: prevent double format of tracks for ESE devices s390/dasd: fix data corruption for ESE devices ASoC: meson: Fix event generation for G12A tohdmi mux ASoC: wm8958: Fix change notifications for DSP controls ASoC: da7219: Fix change notifications for tone generator frequency genirq: Synchronize interrupt thread startup ACPICA: Always create namespace nodes using acpi_ns_create_node() firewire: core: extend card->lock in fw_core_handle_bus_reset firewire: remove check of list iterator against head past the loop body firewire: fix potential uaf in outbound_phy_packet_callback() Revert "SUNRPC: attempt AF_LOCAL connect on setup" gpiolib: of: fix bounds check for 'gpio-reserved-ranges' ALSA: fireworks: fix wrong return count shorter than expected by 4 bytes parisc: Merge model and model name into one line in /proc/cpuinfo MIPS: Fix CP0 counter erratum detection for R4k CPUs Linux 5.4.192 mm, hugetlb: allow for "high" userspace addresses hugetlbfs: get unmapped area below TASK_UNMAPPED_BASE for hugetlbfs tty: n_gsm: fix incorrect UA handling tty: n_gsm: fix wrong command frame length field encoding tty: n_gsm: fix wrong command retry handling tty: n_gsm: fix missing explicit ldisc flush tty: n_gsm: fix insufficient txframe size netfilter: nft_socket: only do sk lookups when indev is available tty: n_gsm: fix malformed counter for out of frame data tty: n_gsm: fix wrong signal octet encoding in convergence layer type 2 x86/cpu: Load microcode during restore_processor_state() net: ethernet: stmmac: fix write to sgmii_adapter_base drivers: net: hippi: Fix deadlock in rr_close() cifs: destage any unwritten data to the server before calling copychunk_write x86: __memcpy_flushcache: fix wrong alignment if size > 2^32 ip6_gre: Avoid updating tunnel->tun_hlen in __gre6_xmit() ASoC: wm8731: Disable the regulator when probing fails tcp: fix F-RTO may not work correctly when receiving DSACK ixgbe: ensure IPsec VF<->PF compatibility bnx2x: fix napi API usage sequence tls: Skip tls_append_frag on zero copy size drm/amd/display: Fix memory leak in dcn21_clock_source_create net: dsa: lantiq_gswip: Don't set GSWIP_MII_CFG_RMII_CLK net: bcmgenet: hide status block before TX timestamping clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() bus: sunxi-rsb: Fix the return value of sunxi_rsb_device_create() tcp: fix potential xmit stalls caused by TCP_NOTSENT_LOWAT ip_gre: Make o_seqno start from 0 in native mode net/smc: sync err code when tcp connection was refused net: hns3: add validity check for message data length cpufreq: fix memory leak in sun50i_cpufreq_nvmem_probe pinctrl: pistachio: fix use of irq_of_parse_and_map() arm64: dts: imx8mn-ddr4-evk: Describe the 32.768 kHz PMIC clock ARM: dts: imx6ull-colibri: fix vqmmc regulator sctp: check asoc strreset_chunk in sctp_generate_reconf_event tcp: ensure to use the most recently sent skb when filling the rate sample tcp: md5: incorrect tcp_header_len for incoming connections bpf, lwt: Fix crash when using bpf_skb_set_tunnel_key() from bpf_xmit lwt hook mtd: rawnand: Fix return value check of wait_for_completion_timeout ipvs: correctly print the memory size of ip_vs_conn_tab ARM: dts: logicpd-som-lv: Fix wrong pinmuxing on OMAP35 ARM: dts: am3517-evm: Fix misc pinmuxing ARM: dts: Fix mmc order for omap3-gta04 phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe ARM: dts: at91: Map MCLK for wm8731 on at91sam9g20ek phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks ARM: OMAP2+: Fix refcount leak in omap_gic_of_init phy: samsung: exynos5250-sata: fix missing device put in probe error paths phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe ARM: dts: imx6qdl-apalis: Fix sgtl5000 detection issue USB: Fix xhci event ring dequeue pointer ERDP update issue mtd: rawnand: fix ecc parameters for mt7622 arm64: dts: meson: remove CPU opps below 1GHz for SM1 boards arm64: dts: meson: remove CPU opps below 1GHz for G12B boards video: fbdev: udlfb: properly check endpoint type hex2bin: fix access beyond string end hex2bin: make the function hex_to_bin constant-time arch_topology: Do not set llc_sibling if llc_id is invalid serial: 8250: Correct the clock for EndRun PTP/1588 PCIe device serial: 8250: Also set sticky MCR bits in console restoration serial: imx: fix overrun interrupts in DMA mode usb: dwc3: gadget: Return proper request status usb: dwc3: core: Fix tx/rx threshold settings usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind() usb: gadget: uvc: Fix crash when encoding data for usb request usb: typec: ucsi: Fix role swapping usb: misc: fix improper handling of refcount in uss720_probe() iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() iio: dac: ad5446: Fix read_raw not returning set value iio: dac: ad5592r: Fix the missing return value. xhci: increase usb U3 -> U0 link resume timeout from 100ms to 500ms xhci: stop polling roothubs after shutdown USB: serial: option: add Telit 0x1057, 0x1058, 0x1075 compositions USB: serial: option: add support for Cinterion MV32-WA/MV32-WB USB: serial: cp210x: add PIDs for Kamstrup USB Meter Reader USB: serial: whiteheat: fix heap overflow in WHITEHEAT_GET_DTR_RTS USB: quirks: add STRING quirk for VCOM device USB: quirks: add a Realtek card reader usb: mtu3: fix USB 3.0 dual-role-switch from device to host lightnvm: disable the subsystem hamradio: remove needs_free_netdev to avoid UAF hamradio: defer 6pack kfree after unregister_netdev floppy: disable FDRAWCMD by default Conflicts: drivers/usb/dwc3/gadget.c include/linux/dma-mapping.h include/linux/stmmac.h mm/memory.c Change-Id: I3bf49e11ae4aeaf1db353efbdfee950cd12de8cf Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
254 lines
10 KiB
C
254 lines
10 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Network device features.
|
|
*/
|
|
#ifndef _LINUX_NETDEV_FEATURES_H
|
|
#define _LINUX_NETDEV_FEATURES_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/bitops.h>
|
|
#include <asm/byteorder.h>
|
|
|
|
typedef u64 netdev_features_t;
|
|
|
|
enum {
|
|
NETIF_F_SG_BIT, /* Scatter/gather IO. */
|
|
NETIF_F_IP_CSUM_BIT, /* Can checksum TCP/UDP over IPv4. */
|
|
__UNUSED_NETIF_F_1,
|
|
NETIF_F_HW_CSUM_BIT, /* Can checksum all the packets. */
|
|
NETIF_F_IPV6_CSUM_BIT, /* Can checksum TCP/UDP over IPV6 */
|
|
NETIF_F_HIGHDMA_BIT, /* Can DMA to high memory. */
|
|
NETIF_F_FRAGLIST_BIT, /* Scatter/gather IO. */
|
|
NETIF_F_HW_VLAN_CTAG_TX_BIT, /* Transmit VLAN CTAG HW acceleration */
|
|
NETIF_F_HW_VLAN_CTAG_RX_BIT, /* Receive VLAN CTAG HW acceleration */
|
|
NETIF_F_HW_VLAN_CTAG_FILTER_BIT,/* Receive filtering on VLAN CTAGs */
|
|
NETIF_F_VLAN_CHALLENGED_BIT, /* Device cannot handle VLAN packets */
|
|
NETIF_F_GSO_BIT, /* Enable software GSO. */
|
|
NETIF_F_LLTX_BIT, /* LockLess TX - deprecated. Please */
|
|
/* do not use LLTX in new drivers */
|
|
NETIF_F_NETNS_LOCAL_BIT, /* Does not change network namespaces */
|
|
NETIF_F_GRO_BIT, /* Generic receive offload */
|
|
NETIF_F_LRO_BIT, /* large receive offload */
|
|
|
|
/**/NETIF_F_GSO_SHIFT, /* keep the order of SKB_GSO_* bits */
|
|
NETIF_F_TSO_BIT /* ... TCPv4 segmentation */
|
|
= NETIF_F_GSO_SHIFT,
|
|
NETIF_F_GSO_ROBUST_BIT, /* ... ->SKB_GSO_DODGY */
|
|
NETIF_F_TSO_ECN_BIT, /* ... TCP ECN support */
|
|
NETIF_F_TSO_MANGLEID_BIT, /* ... IPV4 ID mangling allowed */
|
|
NETIF_F_TSO6_BIT, /* ... TCPv6 segmentation */
|
|
NETIF_F_FSO_BIT, /* ... FCoE segmentation */
|
|
NETIF_F_GSO_GRE_BIT, /* ... GRE with TSO */
|
|
NETIF_F_GSO_GRE_CSUM_BIT, /* ... GRE with csum with TSO */
|
|
NETIF_F_GSO_IPXIP4_BIT, /* ... IP4 or IP6 over IP4 with TSO */
|
|
NETIF_F_GSO_IPXIP6_BIT, /* ... IP4 or IP6 over IP6 with TSO */
|
|
NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */
|
|
NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT,/* ... UDP TUNNEL with TSO & CSUM */
|
|
NETIF_F_GSO_PARTIAL_BIT, /* ... Only segment inner-most L4
|
|
* in hardware and all other
|
|
* headers in software.
|
|
*/
|
|
NETIF_F_GSO_TUNNEL_REMCSUM_BIT, /* ... TUNNEL with TSO & REMCSUM */
|
|
NETIF_F_GSO_SCTP_BIT, /* ... SCTP fragmentation */
|
|
NETIF_F_GSO_ESP_BIT, /* ... ESP with TSO */
|
|
NETIF_F_GSO_UDP_BIT, /* ... UFO, deprecated except tuntap */
|
|
NETIF_F_GSO_UDP_L4_BIT, /* ... UDP payload GSO (not UFO) */
|
|
NETIF_F_GSO_FRAGLIST_BIT, /* ... Fraglist GSO */
|
|
/**/NETIF_F_GSO_LAST = /* last bit, see GSO_MASK */
|
|
NETIF_F_GSO_FRAGLIST_BIT,
|
|
|
|
NETIF_F_FCOE_CRC_BIT, /* FCoE CRC32 */
|
|
NETIF_F_SCTP_CRC_BIT, /* SCTP checksum offload */
|
|
NETIF_F_FCOE_MTU_BIT, /* Supports max FCoE MTU, 2158 bytes*/
|
|
NETIF_F_NTUPLE_BIT, /* N-tuple filters supported */
|
|
NETIF_F_RXHASH_BIT, /* Receive hashing offload */
|
|
NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */
|
|
NETIF_F_NOCACHE_COPY_BIT, /* Use no-cache copyfromuser */
|
|
NETIF_F_LOOPBACK_BIT, /* Enable loopback */
|
|
NETIF_F_RXFCS_BIT, /* Append FCS to skb pkt data */
|
|
NETIF_F_RXALL_BIT, /* Receive errored frames too */
|
|
NETIF_F_HW_VLAN_STAG_TX_BIT, /* Transmit VLAN STAG HW acceleration */
|
|
NETIF_F_HW_VLAN_STAG_RX_BIT, /* Receive VLAN STAG HW acceleration */
|
|
NETIF_F_HW_VLAN_STAG_FILTER_BIT,/* Receive filtering on VLAN STAGs */
|
|
NETIF_F_HW_L2FW_DOFFLOAD_BIT, /* Allow L2 Forwarding in Hardware */
|
|
|
|
NETIF_F_HW_TC_BIT, /* Offload TC infrastructure */
|
|
NETIF_F_HW_ESP_BIT, /* Hardware ESP transformation offload */
|
|
NETIF_F_HW_ESP_TX_CSUM_BIT, /* ESP with TX checksum offload */
|
|
NETIF_F_RX_UDP_TUNNEL_PORT_BIT, /* Offload of RX port for UDP tunnels */
|
|
NETIF_F_HW_TLS_TX_BIT, /* Hardware TLS TX offload */
|
|
NETIF_F_HW_TLS_RX_BIT, /* Hardware TLS RX offload */
|
|
|
|
NETIF_F_GRO_HW_BIT, /* Hardware Generic receive offload */
|
|
NETIF_F_HW_TLS_RECORD_BIT, /* Offload TLS record */
|
|
NETIF_F_GRO_FRAGLIST_BIT, /* Fraglist GRO */
|
|
|
|
NETIF_F_HW_MACSEC_BIT, /* Offload MACsec operations */
|
|
|
|
/*
|
|
* Add your fresh new feature above and remember to update
|
|
* netdev_features_strings[] in net/ethtool/common.c and maybe
|
|
* some feature mask #defines below. Please also describe it
|
|
* in Documentation/networking/netdev-features.txt.
|
|
*/
|
|
|
|
/**/NETDEV_FEATURE_COUNT
|
|
};
|
|
|
|
/* copy'n'paste compression ;) */
|
|
#define __NETIF_F_BIT(bit) ((netdev_features_t)1 << (bit))
|
|
#define __NETIF_F(name) __NETIF_F_BIT(NETIF_F_##name##_BIT)
|
|
|
|
#define NETIF_F_FCOE_CRC __NETIF_F(FCOE_CRC)
|
|
#define NETIF_F_FCOE_MTU __NETIF_F(FCOE_MTU)
|
|
#define NETIF_F_FRAGLIST __NETIF_F(FRAGLIST)
|
|
#define NETIF_F_FSO __NETIF_F(FSO)
|
|
#define NETIF_F_GRO __NETIF_F(GRO)
|
|
#define NETIF_F_GRO_HW __NETIF_F(GRO_HW)
|
|
#define NETIF_F_GSO __NETIF_F(GSO)
|
|
#define NETIF_F_GSO_ROBUST __NETIF_F(GSO_ROBUST)
|
|
#define NETIF_F_HIGHDMA __NETIF_F(HIGHDMA)
|
|
#define NETIF_F_HW_CSUM __NETIF_F(HW_CSUM)
|
|
#define NETIF_F_HW_VLAN_CTAG_FILTER __NETIF_F(HW_VLAN_CTAG_FILTER)
|
|
#define NETIF_F_HW_VLAN_CTAG_RX __NETIF_F(HW_VLAN_CTAG_RX)
|
|
#define NETIF_F_HW_VLAN_CTAG_TX __NETIF_F(HW_VLAN_CTAG_TX)
|
|
#define NETIF_F_IP_CSUM __NETIF_F(IP_CSUM)
|
|
#define NETIF_F_IPV6_CSUM __NETIF_F(IPV6_CSUM)
|
|
#define NETIF_F_LLTX __NETIF_F(LLTX)
|
|
#define NETIF_F_LOOPBACK __NETIF_F(LOOPBACK)
|
|
#define NETIF_F_LRO __NETIF_F(LRO)
|
|
#define NETIF_F_NETNS_LOCAL __NETIF_F(NETNS_LOCAL)
|
|
#define NETIF_F_NOCACHE_COPY __NETIF_F(NOCACHE_COPY)
|
|
#define NETIF_F_NTUPLE __NETIF_F(NTUPLE)
|
|
#define NETIF_F_RXCSUM __NETIF_F(RXCSUM)
|
|
#define NETIF_F_RXHASH __NETIF_F(RXHASH)
|
|
#define NETIF_F_SCTP_CRC __NETIF_F(SCTP_CRC)
|
|
#define NETIF_F_SG __NETIF_F(SG)
|
|
#define NETIF_F_TSO6 __NETIF_F(TSO6)
|
|
#define NETIF_F_TSO_ECN __NETIF_F(TSO_ECN)
|
|
#define NETIF_F_TSO __NETIF_F(TSO)
|
|
#define NETIF_F_VLAN_CHALLENGED __NETIF_F(VLAN_CHALLENGED)
|
|
#define NETIF_F_RXFCS __NETIF_F(RXFCS)
|
|
#define NETIF_F_RXALL __NETIF_F(RXALL)
|
|
#define NETIF_F_GSO_GRE __NETIF_F(GSO_GRE)
|
|
#define NETIF_F_GSO_GRE_CSUM __NETIF_F(GSO_GRE_CSUM)
|
|
#define NETIF_F_GSO_IPXIP4 __NETIF_F(GSO_IPXIP4)
|
|
#define NETIF_F_GSO_IPXIP6 __NETIF_F(GSO_IPXIP6)
|
|
#define NETIF_F_GSO_UDP_TUNNEL __NETIF_F(GSO_UDP_TUNNEL)
|
|
#define NETIF_F_GSO_UDP_TUNNEL_CSUM __NETIF_F(GSO_UDP_TUNNEL_CSUM)
|
|
#define NETIF_F_TSO_MANGLEID __NETIF_F(TSO_MANGLEID)
|
|
#define NETIF_F_GSO_PARTIAL __NETIF_F(GSO_PARTIAL)
|
|
#define NETIF_F_GSO_TUNNEL_REMCSUM __NETIF_F(GSO_TUNNEL_REMCSUM)
|
|
#define NETIF_F_GSO_SCTP __NETIF_F(GSO_SCTP)
|
|
#define NETIF_F_GSO_ESP __NETIF_F(GSO_ESP)
|
|
#define NETIF_F_GSO_UDP __NETIF_F(GSO_UDP)
|
|
#define NETIF_F_HW_VLAN_STAG_FILTER __NETIF_F(HW_VLAN_STAG_FILTER)
|
|
#define NETIF_F_HW_VLAN_STAG_RX __NETIF_F(HW_VLAN_STAG_RX)
|
|
#define NETIF_F_HW_VLAN_STAG_TX __NETIF_F(HW_VLAN_STAG_TX)
|
|
#define NETIF_F_HW_L2FW_DOFFLOAD __NETIF_F(HW_L2FW_DOFFLOAD)
|
|
#define NETIF_F_HW_TC __NETIF_F(HW_TC)
|
|
#define NETIF_F_HW_ESP __NETIF_F(HW_ESP)
|
|
#define NETIF_F_HW_ESP_TX_CSUM __NETIF_F(HW_ESP_TX_CSUM)
|
|
#define NETIF_F_RX_UDP_TUNNEL_PORT __NETIF_F(RX_UDP_TUNNEL_PORT)
|
|
#define NETIF_F_HW_TLS_RECORD __NETIF_F(HW_TLS_RECORD)
|
|
#define NETIF_F_GSO_UDP_L4 __NETIF_F(GSO_UDP_L4)
|
|
#define NETIF_F_HW_TLS_TX __NETIF_F(HW_TLS_TX)
|
|
#define NETIF_F_HW_TLS_RX __NETIF_F(HW_TLS_RX)
|
|
#define NETIF_F_GRO_FRAGLIST __NETIF_F(GRO_FRAGLIST)
|
|
#define NETIF_F_GSO_FRAGLIST __NETIF_F(GSO_FRAGLIST)
|
|
#define NETIF_F_HW_MACSEC __NETIF_F(HW_MACSEC)
|
|
|
|
/* Finds the next feature with the highest number of the range of start-1 till 0.
|
|
*/
|
|
static inline int find_next_netdev_feature(u64 feature, unsigned long start)
|
|
{
|
|
/* like BITMAP_LAST_WORD_MASK() for u64
|
|
* this sets the most significant 64 - start to 0.
|
|
*/
|
|
feature &= ~0ULL >> (-start & ((sizeof(feature) * 8) - 1));
|
|
|
|
return fls64(feature) - 1;
|
|
}
|
|
|
|
/* This goes for the MSB to the LSB through the set feature bits,
|
|
* mask_addr should be a u64 and bit an int
|
|
*/
|
|
#define for_each_netdev_feature(mask_addr, bit) \
|
|
for ((bit) = find_next_netdev_feature((mask_addr), \
|
|
NETDEV_FEATURE_COUNT); \
|
|
(bit) >= 0; \
|
|
(bit) = find_next_netdev_feature((mask_addr), (bit)))
|
|
|
|
/* Features valid for ethtool to change */
|
|
/* = all defined minus driver/device-class-related */
|
|
#define NETIF_F_NEVER_CHANGE (NETIF_F_VLAN_CHALLENGED | \
|
|
NETIF_F_LLTX | NETIF_F_NETNS_LOCAL)
|
|
|
|
/* remember that ((t)1 << t_BITS) is undefined in C99 */
|
|
#define NETIF_F_ETHTOOL_BITS ((__NETIF_F_BIT(NETDEV_FEATURE_COUNT - 1) | \
|
|
(__NETIF_F_BIT(NETDEV_FEATURE_COUNT - 1) - 1)) & \
|
|
~NETIF_F_NEVER_CHANGE)
|
|
|
|
/* Segmentation offload feature mask */
|
|
#define NETIF_F_GSO_MASK (__NETIF_F_BIT(NETIF_F_GSO_LAST + 1) - \
|
|
__NETIF_F_BIT(NETIF_F_GSO_SHIFT))
|
|
|
|
/* List of IP checksum features. Note that NETIF_F_ HW_CSUM should not be
|
|
* set in features when NETIF_F_IP_CSUM or NETIF_F_IPV6_CSUM are set--
|
|
* this would be contradictory
|
|
*/
|
|
#define NETIF_F_CSUM_MASK (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | \
|
|
NETIF_F_HW_CSUM)
|
|
|
|
#define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | \
|
|
NETIF_F_TSO_ECN | NETIF_F_TSO_MANGLEID)
|
|
|
|
#define NETIF_F_ALL_FCOE (NETIF_F_FCOE_CRC | NETIF_F_FCOE_MTU | \
|
|
NETIF_F_FSO)
|
|
|
|
/* List of features with software fallbacks. */
|
|
#define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | \
|
|
NETIF_F_GSO_SCTP)
|
|
|
|
/*
|
|
* If one device supports one of these features, then enable them
|
|
* for all in netdev_increment_features.
|
|
*/
|
|
#define NETIF_F_ONE_FOR_ALL (NETIF_F_GSO_SOFTWARE | NETIF_F_GSO_ROBUST | \
|
|
NETIF_F_SG | NETIF_F_HIGHDMA | \
|
|
NETIF_F_FRAGLIST | NETIF_F_VLAN_CHALLENGED)
|
|
|
|
/*
|
|
* If one device doesn't support one of these features, then disable it
|
|
* for all in netdev_increment_features.
|
|
*/
|
|
#define NETIF_F_ALL_FOR_ALL (NETIF_F_NOCACHE_COPY | NETIF_F_FSO)
|
|
|
|
/*
|
|
* If upper/master device has these features disabled, they must be disabled
|
|
* on all lower/slave devices as well.
|
|
*/
|
|
#define NETIF_F_UPPER_DISABLES NETIF_F_LRO
|
|
|
|
/* changeable features with no special hardware requirements */
|
|
#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO)
|
|
|
|
/* Changeable features with no special hardware requirements that defaults to off. */
|
|
#define NETIF_F_SOFT_FEATURES_OFF NETIF_F_GRO_FRAGLIST
|
|
|
|
#define NETIF_F_VLAN_FEATURES (NETIF_F_HW_VLAN_CTAG_FILTER | \
|
|
NETIF_F_HW_VLAN_CTAG_RX | \
|
|
NETIF_F_HW_VLAN_CTAG_TX | \
|
|
NETIF_F_HW_VLAN_STAG_FILTER | \
|
|
NETIF_F_HW_VLAN_STAG_RX | \
|
|
NETIF_F_HW_VLAN_STAG_TX)
|
|
|
|
#define NETIF_F_GSO_ENCAP_ALL (NETIF_F_GSO_GRE | \
|
|
NETIF_F_GSO_GRE_CSUM | \
|
|
NETIF_F_GSO_IPXIP4 | \
|
|
NETIF_F_GSO_IPXIP6 | \
|
|
NETIF_F_GSO_UDP_TUNNEL | \
|
|
NETIF_F_GSO_UDP_TUNNEL_CSUM)
|
|
|
|
#endif /* _LINUX_NETDEV_FEATURES_H */
|