net/ixgbe: support 82599ES SCTP packet drop action
[dpdk.git] / drivers / net / fm10k / base / fm10k_api.c
index c0f555c..c49d20d 100644 (file)
@@ -55,6 +55,12 @@ s32 fm10k_set_mac_type(struct fm10k_hw *hw)
 
        switch (hw->device_id) {
        case FM10K_DEV_ID_PF:
+#ifdef BOULDER_RAPIDS_HW
+       case FM10K_DEV_ID_SDI_FM10420_QDA2:
+#endif /* BOULDER_RAPIDS_HW */
+#ifdef ATWOOD_CHANNEL_HW
+       case FM10K_DEV_ID_SDI_FM10420_DA2:
+#endif /* ATWOOD_CHANNEL_HW */
                hw->mac.type = fm10k_mac_pf;
                break;
        case FM10K_DEV_ID_VF:
@@ -175,6 +181,7 @@ s32 fm10k_get_bus_info(struct fm10k_hw *hw)
                               FM10K_NOT_IMPLEMENTED);
 }
 
+#ifndef NO_IS_SLOT_APPROPRIATE_CHECK
 /**
  *  fm10k_is_slot_appropriate - Indicate appropriate slot for this SKU
  *  @hw: pointer to hardware structure
@@ -189,6 +196,7 @@ bool fm10k_is_slot_appropriate(struct fm10k_hw *hw)
        return true;
 }
 
+#endif
 /**
  *  fm10k_update_vlan - Clear VLAN ID to VLAN filter table
  *  @hw: pointer to hardware structure
@@ -339,3 +347,17 @@ s32 fm10k_adjust_systime(struct fm10k_hw *hw, s32 ppb)
        return fm10k_call_func(hw, hw->mac.ops.adjust_systime,
                               (hw, ppb), FM10K_NOT_IMPLEMENTED);
 }
+
+/**
+ *  fm10k_notify_offset - Notify switch of change in PTP offset
+ *  @hw: pointer to hardware structure
+ *  @offset: 64bit unsigned offset from hardware SYSTIME value
+ *
+ *  This function is meant to notify switch of change in the PTP offset for
+ *  the hardware SYSTIME registers.
+ **/
+s32 fm10k_notify_offset(struct fm10k_hw *hw, u64 offset)
+{
+       return fm10k_call_func(hw, hw->mac.ops.notify_offset,
+                              (hw, offset), FM10K_NOT_IMPLEMENTED);
+}