Total flavonoids of Abrus cantoniensis inhibit CD14/TLR4/NF-κB/MAPK pathway expression and improve gut microbiota disorders to reduce lipopolysaccharide-induced mastitis in mice. This evidence concerns the gene TLR4 and mastitis.