]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ena] Record supported device features
authorMichael Brown <mcb30@ipxe.org>
Thu, 16 Oct 2025 14:53:47 +0000 (15:53 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 16 Oct 2025 15:36:29 +0000 (16:36 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ena.c
src/drivers/net/ena.h

index c6b08acbeceefbccccb3fe3fbba8d6051f3ed85a..ebaeeb7484ffd580939922ca5eca4710546d36c1 100644 (file)
@@ -707,9 +707,11 @@ static int ena_get_device_attributes ( struct net_device *netdev ) {
        memcpy ( netdev->hw_addr, feature->device.mac, ETH_ALEN );
        netdev->max_pkt_len = le32_to_cpu ( feature->device.mtu );
        netdev->mtu = ( netdev->max_pkt_len - ETH_HLEN );
+       ena->features = le32_to_cpu ( feature->device.features );
 
-       DBGC ( ena, "ENA %p MAC %s MTU %zd\n",
-              ena, eth_ntoa ( netdev->hw_addr ), netdev->max_pkt_len );
+       DBGC ( ena, "ENA %p MAC %s MTU %zd features %#08x\n",
+              ena, eth_ntoa ( netdev->hw_addr ), netdev->max_pkt_len,
+              ena->features );
        return 0;
 }
 
index b5ec6d0bf21063dcb69931af4a319e542d1a86fd..2e549bdb53701dbee354107aec98b22dec0dbe01 100644 (file)
@@ -751,6 +751,8 @@ struct ena_nic {
        void *regs;
        /** On-device memory */
        void *mem;
+       /** Device features */
+       uint32_t features;
        /** Host info */
        struct ena_host_info *info;
        /** Admin queue */