for BDF in `lspci -d "*:*:*" | awk '{print $1}'`; do
  # skip if it doesn't support ACS
    sudo setpci -v -s ${BDF} ECAP_ACS+0x6.w > /dev/null 2>&1
    if [ $? -ne 0 ]; then
	   continue
	fi
	  sudo setpci -v -s ${BDF} ECAP_ACS+0x6.w=0000
done
